forked from FreeCAD/FreeCAD
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ViewProviderSketch: multi-placement editing support
Demonstrate how to support editing the same object in difference placements, and possibly, different documents. Thing to watch for: * Do not use ActiveDocument, instead, use the object's owner document in case the editing happens in a different document. Or, use Gui::Application::editDocument() to access the editing document's viewer. * Make sure undo/redo is done through the object's owner document, which may be different from the editing document. TODO: current UI cannot show foreign document undo/redo when editing externally linked object.
- Loading branch information
1 parent
f7df4d9
commit ea882f5
Showing
2 changed files
with
63 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters