From 2ae1a1a72cc9624bdea48ac69d28c7b50c0fa76d Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 23 Apr 2012 18:14:21 +0200 Subject: [PATCH] 0000677: Navigation style scope --- src/Gui/View3DInventor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Gui/View3DInventor.cpp b/src/Gui/View3DInventor.cpp index 2645b6196..8d354c937 100644 --- a/src/Gui/View3DInventor.cpp +++ b/src/Gui/View3DInventor.cpp @@ -937,7 +937,12 @@ void View3DInventor::customEvent(QEvent * e) { if (e->type() == QEvent::User) { NavigationStyleEvent* se = static_cast(e); - _viewer->setNavigationType(se->style()); + ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath + ("User parameter:BaseApp/Preferences/View"); + if (hGrp->GetBool("SameStyleForAllViews", true)) + hGrp->SetASCII("NavigationStyle", se->style().getName()); + else + _viewer->setNavigationType(se->style()); } }