From d699d080e0a3fd4785241d35152344f0ba300bc3 Mon Sep 17 00:00:00 2001 From: David Kaufman Date: Thu, 4 Sep 2025 18:07:49 -0400 Subject: [PATCH] Fix warning about new Profile properties NumPasses and StepOver being created automatically --- src/Mod/CAM/Path/Op/Profile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/Path/Op/Profile.py b/src/Mod/CAM/Path/Op/Profile.py index ca8ebbb333..a045372f52 100644 --- a/src/Mod/CAM/Path/Op/Profile.py +++ b/src/Mod/CAM/Path/Op/Profile.py @@ -313,9 +313,6 @@ class ObjectProfile(PathAreaOp.ObjectOp): def areaOpOnDocumentRestored(self, obj): self.propertiesReady = False - self.initAreaOpProperties(obj, warn=True) - self.areaOpSetDefaultValues(obj, PathUtils.findParentJob(obj)) - self.setOpEditorProperties(obj) if not hasattr(obj, "NumPasses"): obj.addProperty( "App::PropertyInteger", @@ -326,6 +323,7 @@ class ObjectProfile(PathAreaOp.ObjectOp): "The number of passes to do. Requires a non-zero value for Stepover", ), ) + if not hasattr(obj, "Stepover"): obj.addProperty( "App::PropertyDistance", @@ -337,6 +335,10 @@ class ObjectProfile(PathAreaOp.ObjectOp): ), ) + self.initAreaOpProperties(obj, warn=True) + self.areaOpSetDefaultValues(obj, PathUtils.findParentJob(obj)) + self.setOpEditorProperties(obj) + def areaOpOnChanged(self, obj, prop): """areaOpOnChanged(obj, prop) ... updates certain property visibilities depending on changed properties.""" if prop in ["UseComp", "JoinType", "Base"]: