From c8c18e29688397b24061b90a3eec067cb06c8e25 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Fri, 5 Feb 2021 18:11:49 -0600 Subject: [PATCH] Path: Add `UseOutline` property and default value for new feature --- src/Mod/Path/PathScripts/PathAdaptive.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index c0eb9ffd25..22f6916447 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -603,6 +603,11 @@ class PathAdaptive(PathOp.ObjectOp): obj.addProperty("App::PropertyAngle", "HelixConeAngle", "Adaptive", "Helix cone angle (degrees)") obj.addProperty("App::PropertyLength", "HelixDiameterLimit", "Adaptive", "Limit helix entry diameter, if limit larger than tool diameter or 0, tool diameter is used") + if not hasattr(obj, "UseOutline"): + obj.addProperty("App::PropertyBool", + "UseOutline", + "Adaptive", + "Uses the outline of the base geometry.") def opSetDefaultValues(self, obj, job): obj.Side="Inside" @@ -623,6 +628,7 @@ class PathAdaptive(PathOp.ObjectOp): obj.StockToLeave = 0 obj.KeepToolDownRatio = 3.0 obj.UseHelixArcs = False + obj.UseOutline = False def opExecute(self, obj): '''opExecute(obj) ... called whenever the receiver needs to be recalculated.