mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 05:06:25 -04:00
Made other egg flags be set properly
This commit is contained in:
parent
84e5156e90
commit
ec7e82c9de
@ -1373,6 +1373,11 @@ void MayaEggLoader::TraverseEggNode(EggNode *node, EggGroup *context, string del
|
||||
mesh->AddEggFlag("model");
|
||||
}
|
||||
|
||||
// [gjeon] to handle other flags
|
||||
for (int i = 0; i < context->get_num_object_types(); i++) {
|
||||
mesh->AddEggFlag(MString(context->get_object_type(i).c_str()));
|
||||
}
|
||||
|
||||
} else if (node->is_of_type(EggNurbsSurface::get_class_type())) {
|
||||
// [gjeon] to convert nurbsSurface
|
||||
EggNurbsSurface *eggNurbsSurface = DCAST(EggNurbsSurface, node);
|
||||
@ -1449,6 +1454,11 @@ void MayaEggLoader::TraverseEggNode(EggNode *node, EggGroup *context, string del
|
||||
surface->AddEggFlag("model");
|
||||
}
|
||||
|
||||
// [gjeon] to handle other flags
|
||||
for (int i = 0; i < context->get_num_object_types(); i++) {
|
||||
surface->AddEggFlag(MString(context->get_object_type(i).c_str()));
|
||||
}
|
||||
|
||||
} else if (node->is_of_type(EggComment::get_class_type())) {
|
||||
string comment = (DCAST(EggComment, node))->get_comment();
|
||||
if (comment.find("2egg") != string::npos) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user