Gui: Allow switch to panning after canceling sketcher rubber band selection

This commit is contained in:
Bas Ruigrok
2025-08-23 14:01:19 +02:00
committed by Chris Hennes
parent 199f5d4d55
commit d5a44b4b67
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}