Draft: Fix Gui.doCommand issue in gui_planeproxy caused by PR11080 (#11134)

The previous code resulted in a syntax error.
This commit is contained in:
Roy-043
2023-10-22 11:15:00 +02:00
committed by GitHub
parent 931fcdabbf
commit 76eb1bef10

View File

@@ -63,9 +63,8 @@ class Draft_WorkingPlaneProxy:
App.ActiveDocument.openTransaction("Create WP proxy")
Gui.addModule("Draft")
Gui.addModule("WorkingPlane")
_cmd = "pl = WorkingPlane.get_working_plane().get_placement()"
_cmd += "Draft.make_workingplaneproxy(pl)"
Gui.doCommand(_cmd)
Gui.doCommand("pl = WorkingPlane.get_working_plane().get_placement()")
Gui.doCommand("Draft.make_workingplaneproxy(pl)")
App.ActiveDocument.commitTransaction()
App.ActiveDocument.recompute()