support doubleSided

This commit is contained in:
David Rose 2003-01-24 01:16:16 +00:00
parent 1e334b3a03
commit 6a749d658a

View File

@ -1148,6 +1148,9 @@ make_polyset(const MDagPath &dag_path, const MFnMesh &mesh,
MStatus status;
string name = mesh.name().asChar();
bool double_sided = false;
get_bool_attribute(mesh.object(), "doubleSided", double_sided);
if (mayaegg_cat.is_spam()) {
mayaegg_cat.spam()
<< " numPolygons: "
@ -1203,6 +1206,8 @@ make_polyset(const MDagPath &dag_path, const MFnMesh &mesh,
EggPolygon *egg_poly = new EggPolygon;
egg_group->add_child(egg_poly);
egg_poly->set_bface_flag(double_sided);
long num_verts = pi.polygonVertexCount();
for (long i = 0; i < num_verts; i++) {
EggVertex vert;