Draft: activate new array make functions
They are made available in the `Draft` namespace, and are also used in the unit tests, the test script, and the GuiCommands.
This commit is contained in:
@@ -242,7 +242,7 @@ class TaskPanelPolarArray:
|
||||
# of this class, the GuiCommand.
|
||||
# This is needed to schedule geometry manipulation
|
||||
# that would crash Coin3D if done in the event callback.
|
||||
_cmd = "DD.make_polar_array"
|
||||
_cmd = "Draft.make_polar_array"
|
||||
_cmd += "("
|
||||
_cmd += "App.ActiveDocument." + sel_obj.Name + ", "
|
||||
_cmd += "number=" + str(self.number) + ", "
|
||||
@@ -254,11 +254,9 @@ class TaskPanelPolarArray:
|
||||
Gui.addModule('Draft')
|
||||
Gui.addModule('draftmake.make_polararray')
|
||||
|
||||
_cmd_list = ["# DD = Draft # in the future",
|
||||
"DD = draftmake.make_polararray",
|
||||
"obj = " + _cmd,
|
||||
"obj.Fuse = " + str(self.fuse),
|
||||
"Draft.autogroup(obj)",
|
||||
_cmd_list = ["_obj_ = " + _cmd,
|
||||
"_obj_.Fuse = " + str(self.fuse),
|
||||
"Draft.autogroup(_obj_)",
|
||||
"App.ActiveDocument.recompute()"]
|
||||
|
||||
# We commit the command list through the parent command
|
||||
|
||||
Reference in New Issue
Block a user