Commit 7dbcfbf4 authored by Dirk Wilden's avatar Dirk Wilden

disable mesh picking in moveSkeleton placemanip

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9454 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 10ea85e1
......@@ -758,10 +758,16 @@ void MovePlugin::placeManip(QMouseEvent * _event, bool _snap) {
#ifdef ENABLE_SKELETON_SUPPORT
//first pick anything and check if we hit a skeleton
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it)
o_it->enablePicking( o_it->dataType(DATA_SKELETON) );
successfullyPicked = PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_ANYTHING, _event->pos(), node_idx,
target_idx, &hitPoint) && PluginFunctions::getPickedObject(node_idx, object);
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it)
o_it->enablePicking( true );
if ( object->dataType(DATA_SKELETON) ) {
hitPoint = getNearestJoint(PluginFunctions::skeletonObject(object), hitPoint);
......
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