Core: Selection : Add possibility to set the style of selection between normal and greedy
This commit is contained in:
@@ -743,7 +743,8 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action)
|
||||
if (SoMouseButtonEvent::isButtonReleaseEvent(e,SoMouseButtonEvent::BUTTON1)) {
|
||||
// check to see if the mouse is over a geometry...
|
||||
auto infos = this->getPickedList(action,!Selection().needPickedList());
|
||||
if(setSelection(infos,event->wasCtrlDown()))
|
||||
bool greedySel = Gui::Selection().getSelectionStyle() == Gui::SelectionSingleton::SelectionStyle::GreedySelection;
|
||||
if(setSelection(infos, event->wasCtrlDown() || greedySel))
|
||||
action->setHandled();
|
||||
} // mouse release
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user