From 804cfd6dcf307c82d7063f565ab5c2d57f75864b Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 25 Sep 2017 20:12:53 -0700 Subject: [PATCH] Fixed transitioning error. --- src/Mod/Path/PathScripts/PathOp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathOp.py b/src/Mod/Path/PathScripts/PathOp.py index e47e3d05f6..9b7db21f5f 100644 --- a/src/Mod/Path/PathScripts/PathOp.py +++ b/src/Mod/Path/PathScripts/PathOp.py @@ -294,7 +294,7 @@ class ObjectOp(object): if FeatureDepths & self.opFeatures(obj): # first set update final depth, it's value is not negotiable if not PathGeom.isRoughly(obj.FinalDepth.Value, zmin): - if not obj.FinalDepthLock: + if not hasattr(obj, 'FinalDepthLock') or not obj.FinalDepthLock: obj.FinalDepth = zmin else: if obj.FinalDepth.Value < zmin: @@ -313,7 +313,7 @@ class ObjectOp(object): # update start depth if requested and required if not PathGeom.isRoughly(obj.StartDepth.Value, zmax): - if not obj.StartDepthLock: + if not hasattr(obj, 'StartDepthLock') or not obj.StartDepthLock: obj.StartDepth = zmax elif (obj.StartDepth.Value - 0.0001) <= obj.FinalDepth.Value: obj.StartDepth = minZmax(obj.FinalDepth.Value)