0000677: Navigation style scope
This commit is contained in:
parent
b27a3a11cc
commit
2ae1a1a72c
|
@ -937,7 +937,12 @@ void View3DInventor::customEvent(QEvent * e)
|
|||
{
|
||||
if (e->type() == QEvent::User) {
|
||||
NavigationStyleEvent* se = static_cast<NavigationStyleEvent*>(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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user