Skip to content

Commit

Permalink
maya: Support out-of-order legacy object types
Browse files Browse the repository at this point in the history
  • Loading branch information
darktohka committed Mar 31, 2021
1 parent 1ff5afb commit a75b18a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandatool/src/mayaegg/mayaNodeTree.cxx
Expand Up @@ -349,6 +349,11 @@ get_egg_group(MayaNodeDesc *node_desc) {
attr << "eggObjectTypes" << i;

if (!get_enum_attribute(dag_object, attr.str(), object_type)) {
if (i >= 3) {
// Support out-of-order legacy object types.
continue;
}

// We have run out of object types to add.
break;
}
Expand Down

0 comments on commit a75b18a

Please sign in to comment.