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 9680f13854
commit ed6af74a78

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)) {