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:
parent
9680f13854
commit
ed6af74a78
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user