Gui: Allow switch to panning after canceling sketcher rubber band selection
This commit is contained in:
committed by
Chris Hennes
parent
199f5d4d55
commit
d5a44b4b67
@@ -295,7 +295,9 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Prevent interrupting rubber-band selection in sketcher
|
||||
if (viewer->isEditing() && curmode == NavigationStyle::SELECTION && newmode != NavigationStyle::IDLE) {
|
||||
newmode = NavigationStyle::SELECTION;
|
||||
if (!button1down || !button2down) { // Allow canceling rubber-band in sketcher if both button 1 and button 2 are pressed
|
||||
newmode = NavigationStyle::SELECTION;
|
||||
}
|
||||
processed = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -292,7 +292,9 @@ SbBool RevitNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Prevent interrupting rubber-band selection in sketcher
|
||||
if (viewer->isEditing() && curmode == NavigationStyle::SELECTION && newmode != NavigationStyle::IDLE) {
|
||||
newmode = NavigationStyle::SELECTION;
|
||||
if (!button1down || !button2down) { // Allow canceling rubber-band in sketcher if both button 1 and button 2 are pressed
|
||||
newmode = NavigationStyle::SELECTION;
|
||||
}
|
||||
processed = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user