From 46cf94e20f5322f8e335c7f9766cad5dfbe29fcd Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 19 Apr 2022 19:06:45 +0200 Subject: [PATCH] Gui: fixes issue #6766: Navigation Cube -> Isometric View does not work --- src/Gui/NaviCube.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/NaviCube.cpp b/src/Gui/NaviCube.cpp index 8a8d400813..a70d4efe66 100644 --- a/src/Gui/NaviCube.cpp +++ b/src/Gui/NaviCube.cpp @@ -1212,6 +1212,7 @@ bool NaviCubeImplementation::mouseReleased(short x, short y) { float rotStepAngle = 360.0f / step; ParameterGrp::handle hGrpNavi = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/NaviCube"); bool toNearest = hGrpNavi->GetBool("NaviRotateToNearest", true); + bool applyRotation = true; SbRotation viewRot = CurrentViewRot; @@ -1543,10 +1544,12 @@ bool NaviCubeImplementation::mouseReleased(short x, short y) { break; case TEX_VIEW_MENU_FACE : handleMenu(); + applyRotation = false; break; } - rotateView(viewRot); + if (applyRotation) + rotateView(viewRot); } return true; }