Fixed all ops to use Op...Depth in order to not mess with the expressions.

This commit is contained in:
Markus Lampert
2017-10-16 20:55:11 -07:00
parent 1a29468094
commit eaa7b6f591
11 changed files with 205 additions and 101 deletions

View File

@@ -184,15 +184,13 @@ class ObjectEngrave(PathOp.ObjectOp):
job = PathUtils.findParentJob(obj)
if job and job.Base:
bb = job.Base.Shape.BoundBox
obj.StartDepth = bb.ZMax
obj.FinalDepth = bb.ZMin
obj.ClearanceHeight = bb.ZMax + 5.0
obj.SafeHeight = bb.ZMax + 3.0
obj.OpStartDepth = bb.ZMax
obj.OpFinalDepth = bb.ZMin
else:
obj.FinalDepth = -0.1
if obj.StartDepth.Value != obj.FinalDepth.Value:
obj.OpFinalDepth = -0.1
if obj.OpStartDepth.Value != obj.OpFinalDepth.Value:
# maintain behaviour of a single run
obj.StepDown = obj.StartDepth.Value - obj.FinalDepth.Value
obj.OpStepDown = obj.OpStartDepth.Value - obj.OpFinalDepth.Value
def Create(name):
'''Create(name) ... Creates and returns a Engrave operation.'''