Skip to content

Commit

Permalink
Navigation: fix unable to deselect after editing a sketch
Browse files Browse the repository at this point in the history
After editing a sketch, it was impossible to deselect the just-edited
sketch by clicking empty space (gesture navigation).
  • Loading branch information
DeepSOIC authored and wwmayer committed Jun 24, 2015
1 parent 9680f13 commit ed6af74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gui/NavigationStyle.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit ed6af74

Please sign in to comment.