Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
when cloning a 3d view then also set the new view into edit mode in c…
…ase the original view is
  • Loading branch information
wwmayer committed Oct 1, 2019
1 parent f24c097 commit 3ccba4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Gui/Document.cpp
Expand Up @@ -1627,6 +1627,13 @@ Gui::MDIView* Document::cloneView(Gui::MDIView* oldview)
view3D->setWindowIcon(oldview->windowIcon());
view3D->resize(oldview->size());

// FIXME: Add parameter to define behaviour by the calling instance
// View provider editing
if (d->_editViewProvider) {
firstView->getViewer()->resetEditingViewProvider();
view3D->getViewer()->setEditingViewProvider(d->_editViewProvider, d->_editMode);
}

return view3D;
}

Expand Down

0 comments on commit 3ccba4c

Please sign in to comment.