From fe06dfefb64c90c8da9d018307ef18ae3d8fec17 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Thu, 1 Jul 2021 13:12:55 -0500 Subject: [PATCH] Path: Improve method name for setting editor modes for properties --- src/Mod/Path/PathScripts/PathArray.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathArray.py b/src/Mod/Path/PathScripts/PathArray.py index daf8f11918..edecb74654 100644 --- a/src/Mod/Path/PathScripts/PathArray.py +++ b/src/Mod/Path/PathScripts/PathArray.py @@ -65,7 +65,7 @@ class ObjectArray: obj.Type = ['Linear1D', 'Linear2D', 'Polar'] - self.setEditorProperties(obj) + self.setEditorModes(obj) obj.Proxy = self def __getstate__(self): @@ -74,7 +74,7 @@ class ObjectArray: def __setstate__(self, state): return None - def setEditorProperties(self, obj): + def setEditorModes(self, obj): if obj.Type == 'Linear1D': angleMode = centreMode = copiesXMode = copiesYMode = swapDirectionMode = 2 copiesMode = offsetMode = 0 @@ -98,11 +98,11 @@ class ObjectArray: def onChanged(self, obj, prop): if prop == "Type": - self.setEditorProperties(obj) + self.setEditorModes(obj) def onDocumentRestored(self, obj): """onDocumentRestored(obj) ... Called automatically when document is restored.""" - self.setEditorProperties(obj) + self.setEditorModes(obj) def rotatePath(self, path, angle, centre): '''