From f547f701366f5b48280e645c85c82e7f8f643864 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 6 Oct 2003 21:33:54 +0000 Subject: [PATCH] fix inadvertent top-node animation --- pandatool/src/mayaegg/mayaToEggConverter.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandatool/src/mayaegg/mayaToEggConverter.cxx b/pandatool/src/mayaegg/mayaToEggConverter.cxx index e78a4e17a0..ca557507ba 100644 --- a/pandatool/src/mayaegg/mayaToEggConverter.cxx +++ b/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