Gui: fixes issue #6766: Navigation Cube -> Isometric View does not work

This commit is contained in:
wmayer
2022-04-19 19:06:45 +02:00
parent 1a7b2279b7
commit 46cf94e20f

View File

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