mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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";
|
mayaegg_cat.debug() << "\"" << dag_path.partialPathName() << "\" : \n";
|
||||||
|
|
||||||
// Get the translation/rotation/scale data
|
// 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
|
// This node has no transform - i.e., it's the world node
|
||||||
if (!status && status.statusCode () == MStatus::kInvalidParameter)
|
if (!status && status.statusCode () == MStatus::kInvalidParameter)
|
||||||
return false;
|
return false;
|
||||||
@ -990,8 +990,8 @@ process_model_node(MayaNodeDesc *node_desc) {
|
|||||||
status.perror("MFnDagNode constructor");
|
status.perror("MFnDagNode constructor");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MTransformationMatrix matrix (transform.transformationMatrix());
|
MTransformationMatrix matrix (transform.transformationMatrix());
|
||||||
MVector tl = matrix.getTranslation(MSpace::kWorld);
|
MVector tl = matrix.translation(MSpace::kWorld);
|
||||||
// Stop rediculously small values like -4.43287e-013
|
// Stop rediculously small values like -4.43287e-013
|
||||||
if (tl.x < 0.0001) {
|
if (tl.x < 0.0001) {
|
||||||
tl.x = 0;
|
tl.x = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user