mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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;
|
MStatus status;
|
||||||
string name = mesh.name().asChar();
|
string name = mesh.name().asChar();
|
||||||
|
|
||||||
|
bool double_sided = false;
|
||||||
|
get_bool_attribute(mesh.object(), "doubleSided", double_sided);
|
||||||
|
|
||||||
if (mayaegg_cat.is_spam()) {
|
if (mayaegg_cat.is_spam()) {
|
||||||
mayaegg_cat.spam()
|
mayaegg_cat.spam()
|
||||||
<< " numPolygons: "
|
<< " numPolygons: "
|
||||||
@ -1203,6 +1206,8 @@ make_polyset(const MDagPath &dag_path, const MFnMesh &mesh,
|
|||||||
EggPolygon *egg_poly = new EggPolygon;
|
EggPolygon *egg_poly = new EggPolygon;
|
||||||
egg_group->add_child(egg_poly);
|
egg_group->add_child(egg_poly);
|
||||||
|
|
||||||
|
egg_poly->set_bface_flag(double_sided);
|
||||||
|
|
||||||
long num_verts = pi.polygonVertexCount();
|
long num_verts = pi.polygonVertexCount();
|
||||||
for (long i = 0; i < num_verts; i++) {
|
for (long i = 0; i < num_verts; i++) {
|
||||||
EggVertex vert;
|
EggVertex vert;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user