Commit 78d5bc15 authored by Matthias Möller's avatar Matthias Möller

fix: transform Child Button changes the behaviour of the transformation

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13196 383ad7c9-94d9-4d36-a494-682f7c89f535
parent de25913b
...@@ -348,7 +348,7 @@ void SkeletonEditingPlugin::transformJoint(int _objectId, int _jointId, ...@@ -348,7 +348,7 @@ void SkeletonEditingPlugin::transformJoint(int _objectId, int _jointId,
* Change translation of root joint. * Change translation of root joint.
*/ */
transformer.translateJoint(joint, ACG::Vec3d(_matrix(0, 3), _matrix(1, 3), _matrix(2, 3)), true); transformer.translateJoint(joint, ACG::Vec3d(_matrix(0, 3), _matrix(1, 3), _matrix(2, 3)), !transformChildJoints_);
} else { } else {
...@@ -405,7 +405,7 @@ void SkeletonEditingPlugin::transformJoint(int _objectId, int _jointId, ...@@ -405,7 +405,7 @@ void SkeletonEditingPlugin::transformJoint(int _objectId, int _jointId,
} }
// translate the joint // translate the joint
transformer.translateJoint(joint, ACG::Vec3d(_matrix(0, 3), _matrix(1, 3), _matrix(2, 3)), true); transformer.translateJoint(joint, ACG::Vec3d(_matrix(0, 3), _matrix(1, 3), _matrix(2, 3)), !transformChildJoints_);
// get translated parent axis // get translated parent axis
transParentAxis = activePose->localTranslation(_jointId); transParentAxis = activePose->localTranslation(_jointId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment