From 232fc7046ce54eb12fb583a71ee88a489805abcd Mon Sep 17 00:00:00 2001 From: Schildkroet Date: Mon, 9 Mar 2020 14:58:12 +0100 Subject: [PATCH] Added some comments --- src/Mod/Path/PathScripts/PathDeburr.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDeburr.py b/src/Mod/Path/PathScripts/PathDeburr.py index c831e70f28..35351759eb 100644 --- a/src/Mod/Path/PathScripts/PathDeburr.py +++ b/src/Mod/Path/PathScripts/PathDeburr.py @@ -78,7 +78,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp): obj.Direction = ['CW', 'CCW'] obj.addProperty('App::PropertyEnumeration', 'Side', 'Deburr', QtCore.QT_TRANSLATE_NOOP('PathDeburr', 'Side of Operation')) obj.Side = ['Outside', 'Inside'] - obj.setEditorMode('Side', 2) # Hide property, it's always outside + obj.setEditorMode('Side', 2) # Hide property, it's calculated by op obj.addProperty('App::PropertyInteger', 'EntryPoint', 'Deburr', QtCore.QT_TRANSLATE_NOOP('PathDeburr', 'Select the segment, there the operations starts')) def opOnDocumentRestored(self, obj): @@ -109,16 +109,19 @@ class ObjectDeburr(PathEngraveBase.ObjectOp): self.basewires.extend(basewires) + # Set default value side = ["Outside"] + for w in basewires: self.adjusted_basewires.append(w) wire = PathOpTools.offsetWire(w, base.Shape, offset, True, side) if wire: wires.append(wire) - # Outside or Inside + # Save Outside or Inside obj.Side = side[0] - + + # Set direction of op forward = True if obj.Direction == 'CCW': forward = False @@ -149,7 +152,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp): def opSetDefaultValues(self, obj, job): PathLog.track(obj.Label, job.Label) obj.Width = '1 mm' - obj.ExtraDepth = '0.1 mm' + obj.ExtraDepth = '0.5 mm' obj.Join = 'Round' obj.setExpression('StepDown', '0 mm') obj.StepDown = '0 mm'