From 42c5b2e9ca437bb654a5fc2b26f52ca23f9983b5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 28 Oct 2018 20:45:02 +0100 Subject: [PATCH] fixes 0003657: automatic rotation disabled by default --- src/Gui/DlgSettings3DView.ui | 2 +- src/Gui/SplitView3DInventor.cpp | 2 +- src/Gui/View3DInventor.cpp | 2 +- src/Mod/Sandbox/Gui/GLGraphicsView.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Gui/DlgSettings3DView.ui b/src/Gui/DlgSettings3DView.ui index 4e48fa2966..2f719433f7 100644 --- a/src/Gui/DlgSettings3DView.ui +++ b/src/Gui/DlgSettings3DView.ui @@ -138,7 +138,7 @@ Enable animation - true + false UseAutoRotation diff --git a/src/Gui/SplitView3DInventor.cpp b/src/Gui/SplitView3DInventor.cpp index e16e19f534..cf028a4968 100644 --- a/src/Gui/SplitView3DInventor.cpp +++ b/src/Gui/SplitView3DInventor.cpp @@ -232,7 +232,7 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp } else if (strcmp(Reason,"UseAutoRotation") == 0) { for (std::vector::iterator it = _viewer.begin(); it != _viewer.end(); ++it) - (*it)->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",true)); + (*it)->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",false)); } else if (strcmp(Reason,"Gradient") == 0) { for (std::vector::iterator it = _viewer.begin(); it != _viewer.end(); ++it) diff --git a/src/Gui/View3DInventor.cpp b/src/Gui/View3DInventor.cpp index 4113b97741..03fcb0ede6 100644 --- a/src/Gui/View3DInventor.cpp +++ b/src/Gui/View3DInventor.cpp @@ -359,7 +359,7 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M _viewer->setFeedbackVisibility(rGrp.GetBool("CornerCoordSystem",true)); } else if (strcmp(Reason,"UseAutoRotation") == 0) { - _viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",true)); + _viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",false)); } else if (strcmp(Reason,"Gradient") == 0) { _viewer->setGradientBackground((rGrp.GetBool("Gradient",true))); diff --git a/src/Mod/Sandbox/Gui/GLGraphicsView.cpp b/src/Mod/Sandbox/Gui/GLGraphicsView.cpp index 368c76de38..103f161a28 100644 --- a/src/Mod/Sandbox/Gui/GLGraphicsView.cpp +++ b/src/Mod/Sandbox/Gui/GLGraphicsView.cpp @@ -931,7 +931,7 @@ void GraphicsView3D::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M _viewer->setFeedbackVisibility(rGrp.GetBool("CornerCoordSystem",true)); } else if (strcmp(Reason,"UseAutoRotation") == 0) { - _viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",true)); + _viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",false)); } else if (strcmp(Reason,"Gradient") == 0) { _viewer->setGradientBackground((rGrp.GetBool("Gradient",true)));