Jelajahi Sumber

Fix compile error for Maya 6 and 6.5

rdb 11 tahun lalu
induk
melakukan
7785426d2c
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      pandatool/src/mayaegg/mayaToEggConverter.cxx

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

@@ -981,7 +981,7 @@ process_model_node(MayaNodeDesc *node_desc) {
     mayaegg_cat.debug() << "\"" << dag_path.partialPathName() << "\" : \n";
 
     // Get the translation/rotation/scale data
-    MObject		transformNode = dag_path.transform(&status);
+    MObject transformNode = dag_path.transform(&status);
     // This node has no transform - i.e., it's the world node
     if (!status && status.statusCode () == MStatus::kInvalidParameter)
       return false;
@@ -990,8 +990,8 @@ process_model_node(MayaNodeDesc *node_desc) {
       status.perror("MFnDagNode constructor");
       return false;
     }
-    MTransformationMatrix	matrix (transform.transformationMatrix());
-    MVector tl = matrix.getTranslation(MSpace::kWorld);
+    MTransformationMatrix matrix (transform.transformationMatrix());
+    MVector tl = matrix.translation(MSpace::kWorld);
     // Stop rediculously small values like -4.43287e-013
     if (tl.x < 0.0001) {
       tl.x = 0;