From 43066f98b69aa4827b0c63a57102b80474bd6b82 Mon Sep 17 00:00:00 2001 From: ml Date: Fri, 7 Oct 2016 14:41:39 -0700 Subject: [PATCH] Fixed initial Side determination for CCW paths. --- src/Mod/Path/PathScripts/DogboneDressup.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Mod/Path/PathScripts/DogboneDressup.py b/src/Mod/Path/PathScripts/DogboneDressup.py index 245316eec..07ab322d5 100644 --- a/src/Mod/Path/PathScripts/DogboneDressup.py +++ b/src/Mod/Path/PathScripts/DogboneDressup.py @@ -233,15 +233,12 @@ class ObjectDressup: if not hasattr(self, 'toolRadius'): print("Here we go ... ") # By default the side for dogbones is opposite of the base path side - if obj.Base.Direction == 'CCW': - obj.Side = obj.Base.Side + if obj.Base.Side == 'Left': + obj.Side = 'Right' + elif obj.Base.Side == 'Right': + obj.Side = 'Left' else: - if obj.Base.Side == 'Left': - obj.Side = 'Right' - elif obj.Base.Side == 'Right': - obj.Side = 'Left' - else: - obj.Side = 'On' + obj.Side = 'On' self.toolRadius = 5 toolLoad = PathUtils.getLastToolLoad(obj)