Commit 3f6ff611 authored by Dirk Wilden's avatar Dirk Wilden

small visualization fix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11178 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e7c1039d
......@@ -263,20 +263,21 @@ void SkeletonEditingPlugin::transformJoint( int _objectId , int _jointId, Matrix
SkeletonTransform transformer(*skeleton);
if ( handle.isValid() )
if ( handle.isValid() ){
//we are in an animation pose -> only rotation allowed
transformer.rotateJoint(joint, activePose, _matrix, transformAllFrames_);
else
//we are in the refPose apply full transformation
transformer.transformJoint(joint, _matrix, !recursiveJointTransformation);
//update the skin
bool exists = false;
//update the skin
bool exists = false;
emit functionExists("skeletalanimation", "updateSkin()", exists);
emit functionExists("skeletalanimation", "updateSkin()", exists);
if (exists)
RPC::callFunction("skeletalanimation", "updateSkin");
if (exists)
RPC::callFunction("skeletalanimation", "updateSkin");
}else
//we are in the refPose apply full transformation
transformer.transformJoint(joint, _matrix, !recursiveJointTransformation);
emit updatedObject(_objectId, UPDATE_GEOMETRY);
......
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