From 0abfdf237a92d2f126036d903b0048e48cf678b5 Mon Sep 17 00:00:00 2001 From: tarman3 Date: Thu, 13 Nov 2025 21:15:19 +0200 Subject: [PATCH] CAM: Profile - clean areaOpOnDocumentRestored() --- src/Mod/CAM/Path/Op/Profile.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/Mod/CAM/Path/Op/Profile.py b/src/Mod/CAM/Path/Op/Profile.py index a045372f52..32a6588151 100644 --- a/src/Mod/CAM/Path/Op/Profile.py +++ b/src/Mod/CAM/Path/Op/Profile.py @@ -312,29 +312,6 @@ class ObjectProfile(PathAreaOp.ObjectOp): def areaOpOnDocumentRestored(self, obj): self.propertiesReady = False - - if not hasattr(obj, "NumPasses"): - obj.addProperty( - "App::PropertyInteger", - "NumPasses", - "Profile", - QT_TRANSLATE_NOOP( - "App::Property", - "The number of passes to do. Requires a non-zero value for Stepover", - ), - ) - - if not hasattr(obj, "Stepover"): - obj.addProperty( - "App::PropertyDistance", - "Stepover", - "Profile", - QT_TRANSLATE_NOOP( - "App::Property", - "If doing multiple passes, the extra offset of each additional pass", - ), - ) - self.initAreaOpProperties(obj, warn=True) self.areaOpSetDefaultValues(obj, PathUtils.findParentJob(obj)) self.setOpEditorProperties(obj)