From d12312a46940dddbd541d3e54b61aee0591ac3bf Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Thu, 1 Jul 2021 13:12:28 -0500 Subject: [PATCH] Path: Improve variable names for mode values --- src/Mod/Path/PathScripts/PathArray.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathArray.py b/src/Mod/Path/PathScripts/PathArray.py index ba91d29f74..daf8f11918 100644 --- a/src/Mod/Path/PathScripts/PathArray.py +++ b/src/Mod/Path/PathScripts/PathArray.py @@ -76,22 +76,22 @@ class ObjectArray: def setEditorProperties(self, obj): if obj.Type == 'Linear1D': - Angle = Centre = CopiesX = CopiesY = SwapDirection = 2 - Copies = Offset = 0 + angleMode = centreMode = copiesXMode = copiesYMode = swapDirectionMode = 2 + copiesMode = offsetMode = 0 elif obj.Type == 'Linear2D': - Angle = Copies = Centre = 2 - CopiesX = CopiesY = Offset = SwapDirection = 0 + angleMode = copiesMode = centreMode = 2 + copiesXMode = copiesYMode = offsetMode = swapDirectionMode = 0 elif obj.Type == 'Polar': - Angle = Copies = Centre = 0 - CopiesX = CopiesY = Offset = SwapDirection = 2 + angleMode = copiesMode = centreMode = 0 + copiesXMode = copiesYMode = offsetMode = swapDirectionMode = 2 - obj.setEditorMode('Angle', Angle) - obj.setEditorMode('Copies', Copies) - obj.setEditorMode('Centre', Centre) - obj.setEditorMode('CopiesX', CopiesX) - obj.setEditorMode('CopiesY', CopiesY) - obj.setEditorMode('Offset', Offset) - obj.setEditorMode('SwapDirection', SwapDirection) + obj.setEditorMode('Angle', angleMode) + obj.setEditorMode('Copies', copiesMode) + obj.setEditorMode('Centre', centreMode) + obj.setEditorMode('CopiesX', copiesXMode) + obj.setEditorMode('CopiesY', copiesYMode) + obj.setEditorMode('Offset', offsetMode) + obj.setEditorMode('SwapDirection', swapDirectionMode) obj.setEditorMode('JitterPercent', 0) obj.setEditorMode('JitterMagnitude', 0) obj.setEditorMode('ToolController', 2)