Commit de67eb25 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug in sphere selection where only faces where picked. For point clouds...

Fixed bug in sphere selection where only faces where picked. For point clouds that might be a bad idea

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13102 383ad7c9-94d9-4d36-a494-682f7c89f535
parent befb8e61
......@@ -1345,7 +1345,7 @@ void SelectionBasePlugin::slotSphereSelection(QMouseEvent* _event) {
sphere_node_->hide();
// Pick anything to find all possible objects
if (PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_FACE,
if (PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_ANYTHING,
_event->pos(), node_idx, target_idx, &hit_point)) {
BaseObjectData* object = 0;
......@@ -1456,8 +1456,15 @@ void SelectionBasePlugin::addedEmptyObject (int _id) {
if(found) break;
}
} else {
BaseObject* bObject = 0;
PluginFunctions::getObject(_id, bObject);
// Groups are ok, others will cause an error
if (!bObject->isGroup()) {
emit log(LOGERR, "Could not retrieve object type! Maybe a selection environment will be missing.");
return;
}
return;
}
if(found) {
......
Supports Markdown
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