mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
support doubleSided
This commit is contained in:
parent
1e334b3a03
commit
6a749d658a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user