From 96a60a53fd39ec5e66d156d4a4a1943cfbfd62a2 Mon Sep 17 00:00:00 2001 From: Rexbas Date: Wed, 27 Dec 2023 15:30:10 +0100 Subject: [PATCH] Gui: Set processed true when right mouse released and hasDragged in TinkerCAD style --- src/Gui/TinkerCADNavigationStyle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/TinkerCADNavigationStyle.cpp b/src/Gui/TinkerCADNavigationStyle.cpp index 60bf924580ac..e229a61f5282 100644 --- a/src/Gui/TinkerCADNavigationStyle.cpp +++ b/src/Gui/TinkerCADNavigationStyle.cpp @@ -142,6 +142,9 @@ SbBool TinkerCADNavigationStyle::processSoEvent(const SoEvent * const ev) this->centerTime = ev->getTime(); processed = true; } + else if (!press && curmode == NavigationStyle::DRAGGING && hasDragged) { + processed = true; + } else if (!press && curmode == NavigationStyle::DRAGGING && !hasDragged) { newmode = NavigationStyle::IDLE; if (!viewer->isEditing()) {