Gui: fix auto view switching of editing object

This commit is contained in:
Zheng, Lei
2019-08-06 17:55:43 +08:00
committed by wmayer
parent f78f05adee
commit 2cb69603b6

View File

@@ -374,7 +374,7 @@ bool Document::setEdit(Gui::ViewProvider* p, int ModNum, const char *subname)
View3DInventor *activeView = dynamic_cast<View3DInventor *>(getActiveView());
// if the currently active view is not the 3d view search for it and activate it
if (!activeView) {
activeView = dynamic_cast<View3DInventor *>(getViewOfViewProvider(vp));
activeView = dynamic_cast<View3DInventor *>(setActiveView(vp));
if(!activeView){
FC_ERR("cannot edit without active view");
return false;