mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Fix compile error for Maya 6 and 6.5
This commit is contained in:
parent
73b72386a0
commit
7785426d2c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user