Skip to content

Commit

Permalink
Draft: Fix Gui.doCommand issue in gui_planeproxy caused by PR11080 (F…
Browse files Browse the repository at this point in the history
…reeCAD#11134)

The previous code resulted in a syntax error.
  • Loading branch information
Roy-043 authored Oct 22, 2023
1 parent 0b0e9ef commit 35ab4a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Mod/Draft/draftguitools/gui_planeproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def Activated(self):
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()

Expand Down

0 comments on commit 35ab4a2

Please sign in to comment.