Gui: Prohibit interrupting a rubber-band selection in sketcher

This commit is contained in:
Rexbas
2024-01-24 20:54:00 +01:00
parent eac036105e
commit 7fbd53f003
9 changed files with 87 additions and 13 deletions

View File

@@ -269,6 +269,12 @@ SbBool OpenCascadeNavigationStyle::processSoEvent(const SoEvent * const ev)
processed = true;
}
// Prevent interrupting rubber-band selection in sketcher
if (viewer->isEditing() && curmode == NavigationStyle::SELECTION && newmode != NavigationStyle::IDLE) {
newmode = NavigationStyle::SELECTION;
processed = false;
}
if (newmode != curmode) {
this->setViewingMode(newmode);
}