From ed6af74a78512a0b7557439caabc6a43ce3ba118 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 21 Jun 2015 17:39:26 +0300 Subject: [PATCH] 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). --- src/Gui/NavigationStyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/NavigationStyle.cpp b/src/Gui/NavigationStyle.cpp index fa9a6dc23..a6acebb05 100644 --- a/src/Gui/NavigationStyle.cpp +++ b/src/Gui/NavigationStyle.cpp @@ -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)) {