Merge pull request #25285 from tarman3/profile_restore
CAM: Profile - clean areaOpOnDocumentRestored()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user