From 0bec69f3e370a9c2aeb3f2bbfb6130c3ba7c1719 Mon Sep 17 00:00:00 2001 From: Patrick Felixberger Date: Tue, 9 Feb 2021 18:41:07 +0100 Subject: [PATCH] [PATH] Added onDocRestore method for adaptive op --- src/Mod/Path/PathScripts/PathAdaptive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index e171813f80..7cce64d092 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -600,6 +600,10 @@ class PathAdaptive(PathOp.ObjectOp): See documentation of execute() for a list of base functionality provided. Should be overwritten by subclasses.''' Execute(self,obj) + + def opOnDocumentRestored(self, obj): + if not hasattr(obj, 'HelixConeAngle'): + obj.addProperty("App::PropertyAngle", "HelixConeAngle", "Adaptive", "Helix cone angle (degrees)")