From 75272f20a5e02c0bd61bb1ae8da7af5d73989e6a Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Wed, 23 Oct 2019 22:20:31 -0700 Subject: [PATCH] Ignore distance check when copying holding tags --- src/Mod/Path/PathScripts/PathDeburr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDeburr.py b/src/Mod/Path/PathScripts/PathDeburr.py index c112eb496a..109f4970ce 100644 --- a/src/Mod/Path/PathScripts/PathDeburr.py +++ b/src/Mod/Path/PathScripts/PathDeburr.py @@ -48,14 +48,14 @@ def translate(context, text, disambig=None): def toolDepthAndOffset(width, extraDepth, tool): '''toolDepthAndOffset(width, extraDepth, tool) ... return tuple for given parameters.''' - angle = tool.CuttingEdgeAngle + angle = float(tool.CuttingEdgeAngle) if 0 == angle: angle = 180 tan = math.tan(math.radians(angle / 2)) toolDepth = 0 if 0 == tan else width / tan depth = toolDepth + extraDepth - toolOffset = tool.FlatRadius + toolOffset = float(tool.FlatRadius) extraOffset = float(tool.Diameter) / 2 - width if 180 == angle else extraDepth / tan offset = toolOffset + extraOffset return (depth, offset)