Browse Source

mayaegg: Fix animations not being created during egg traversal

Closes #1004
Daniel 5 years ago
parent
commit
1f504f6031
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pandatool/src/mayaegg/mayaEggLoader.cxx

+ 2 - 1
pandatool/src/mayaegg/mayaEggLoader.cxx

@@ -1572,7 +1572,8 @@ void MayaEggLoader::TraverseEggNode(EggNode *node, EggGroup *context, string del
         mayaloader_cat.debug() << delim+delstring << "found an EggTable: " << node->get_name() << endl;
       }
     } else if (node->is_of_type(EggXfmSAnim::get_class_type())) {
-      //MayaAnim *anim = GetAnim(DCAST(EggXfmSAnim, node));
+      // Create a MayaAnim equivalent of the EggXfmSAnim
+      GetAnim(DCAST(EggXfmSAnim, node));
       //anim->PrintData();
       if (mayaloader_cat.is_debug()) {
         mayaloader_cat.debug() << delim+delstring << "found an EggXfmSAnim: " << node->get_name() << endl;