瀏覽代碼

fix inadvertent top-node animation

David Rose 22 年之前
父節點
當前提交
f547f70136
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      pandatool/src/mayaegg/mayaToEggConverter.cxx

+ 3 - 0
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -767,6 +767,9 @@ get_transform(const MDagPath &dag_path, EggGroup *egg_group) {
 ////////////////////////////////////////////////////////////////////
 void MayaToEggConverter::
 get_joint_transform(const MDagPath &dag_path, EggGroup *egg_group) {
+  // First, make sure there's not a transform on the group already.
+  egg_group->clear_transform();
+
   MStatus status;
   MObject transformNode = dag_path.transform(&status);
   // This node has no transform - i.e., it's the world node