Gui: [skip ci] move handling of parameter ShowAxisCross from Document to View3DInventor

This commit is contained in:
wmayer
2020-05-30 11:32:34 +02:00
parent 1f63355c06
commit d3b8906dd0
2 changed files with 5 additions and 4 deletions

View File

@@ -1648,10 +1648,7 @@ MDIView *Document::createView(const Base::Type& typeId)
const char *ppReturn = 0;
view3D->onMsg(cameraSettings.c_str(),&ppReturn);
}
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
if (hViewGrp->GetBool("ShowAxisCross",false)){
view3D->getViewer()->setAxisCross(true);
}
getMainWindow()->addWindow(view3D);
return view3D;
}