Draft: rename PathArray properties

`PathObj` becomes `PathObject`, `Xlate` becomes `ExtraTranslation`,
and `PathSubs` becomes `PathSubelements`.

Update `make_path_array` function and the Gui Command.
This commit is contained in:
vocx-fc
2020-05-29 20:14:17 -05:00
committed by Yorik van Havre
parent f1bcffbc16
commit f2f22e155b
3 changed files with 24 additions and 24 deletions

View File

@@ -114,7 +114,7 @@ class PathArray(gui_base_original.Modifier):
path_object = sel[1].Object
count = 4
xlate = App.Vector(0, 0, 0)
extra = App.Vector(0, 0, 0)
subelements = list(sel[1].SubElementNames)
align = False
align_mode = "Original"
@@ -136,7 +136,7 @@ class PathArray(gui_base_original.Modifier):
_cmd += "App.ActiveDocument." + base_object.Name + ", "
_cmd += "App.ActiveDocument." + path_object.Name + ", "
_cmd += "count=" + str(count) + ", "
_cmd += "xlate=" + DraftVecUtils.toString(xlate) + ", "
_cmd += "extra=" + DraftVecUtils.toString(extra) + ", "
_cmd += "subelements=" + subelements_list_str + ", "
_cmd += "align=" + str(align) + ", "
_cmd += "align_mode=" + "'" + align_mode + "', "