Fix compile error for Maya 6 and 6.5

This commit is contained in:
rdb 2014-05-25 13:23:00 +00:00
parent 73b72386a0
commit 7785426d2c

View File

@ -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;