Commit 678c0a7e authored by Mike Kremer's avatar Mike Kremer

Avoid crash.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13141 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1cd1ab4c
......@@ -1304,6 +1304,8 @@ Skeleton::Pose* SkeletonEditingPlugin::activePose(SkeletonObject* _skeletonObj){
Skeleton* skeleton = PluginFunctions::skeleton(_skeletonObj);
if(!skeleton) return NULL;
AnimationHandle handle = _skeletonObj->skeletonNode()->activePose();
if ( !handle.isValid() ){
......@@ -1487,10 +1489,10 @@ void SkeletonEditingPlugin::updateManipulatorPosition(BaseObjectData* _skeletonO
if (skeleton->joint(jointID) == 0)
return;
AnimationHandle handle = PluginFunctions::skeletonObject(_skeletonObj)->skeletonNode()->activePose();
Skeleton::Pose* pose = activePose(PluginFunctions::skeletonObject(_skeletonObj));
if(!pose) return;
ACG::Vec3d newPos = pose->globalTranslation( jointID );
_skeletonObj->manipulatorNode()->set_center(newPos);
......
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