Draft: lowercase use_link option for arrays
Inside the class `_DraftLink` the `onDocumentRestored` function tests for the existence of the old attribute `useLink`. If it is present, it uses it to define the new variable name `use_link`. This is done use Python naming conventions. The old `useLink` is deleted so it is not longer saved together with the object when the document is saved.
This commit is contained in:
@@ -209,7 +209,7 @@ class TaskPanelOrthoArray:
|
||||
_cmd += "arg4=" + str(self.n_X) + ", "
|
||||
_cmd += "arg5=" + str(self.n_Y) + ", "
|
||||
_cmd += "arg6=" + str(self.n_Z) + ", "
|
||||
_cmd += "useLink=" + str(self.use_link)
|
||||
_cmd += "use_link=" + str(self.use_link)
|
||||
_cmd += ")"
|
||||
|
||||
_cmd_list = ["FreeCADGui.addModule('Draft')",
|
||||
|
||||
Reference in New Issue
Block a user