Navigation: fix unable to deselect after editing a sketch

After editing a sketch, it was impossible to deselect the just-edited
sketch by clicking empty space (gesture navigation).
This commit is contained in:
DeepSOIC
2015-06-21 17:39:26 +03:00
committed by wmayer
parent f193f50eed
commit 29a8db3ca5

View File

@@ -1357,7 +1357,8 @@ SbBool NavigationStyle::processEvent(const SoEvent * const ev)
processed = this->processSoEvent(ev);
// check for left click without selecting something
if (curmode == NavigationStyle::SELECTION && !processed) {
if ((curmode == NavigationStyle::SELECTION || curmode == NavigationStyle::IDLE)
&& !processed) {
if (ev->getTypeId().isDerivedFrom(SoMouseButtonEvent::getClassTypeId())) {
SoMouseButtonEvent * const e = (SoMouseButtonEvent *) ev;
if (SoMouseButtonEvent::isButtonReleaseEvent(e,SoMouseButtonEvent::BUTTON1)) {