Skip to content

Commit

Permalink
Update gui_arcs.py
Browse files Browse the repository at this point in the history
Gui.addModule("Draft") should be executed before committing _cmd_list irrespective of the UsePartPrimitives setting.
  • Loading branch information
Roy-043 committed Apr 29, 2021
1 parent 16cfcf5 commit 737f4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftguitools/gui_arcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def drawArc(self):
try:
# The command to run is built as a series of text strings
# to be committed through the `draftutils.todo.ToDo` class.
Gui.addModule("Draft")
if utils.getParam("UsePartPrimitives", False):
# Insert a Part::Primitive object
_base = DraftVecUtils.toString(self.center)
Expand All @@ -318,7 +319,6 @@ def drawArc(self):
_cmd_list)
else:
# Insert a Draft circle
Gui.addModule("Draft")
_base = DraftVecUtils.toString(self.center)
_cmd = 'Draft.makeCircle'
_cmd += '('
Expand Down

0 comments on commit 737f4b3

Please sign in to comment.