From 440fda29e51e3d8ca8b36c1133b6f61e9ef353dd Mon Sep 17 00:00:00 2001 From: Phaseloop Date: Tue, 11 Nov 2025 00:42:14 +0100 Subject: [PATCH] fix job editor crashing --- src/Mod/CAM/Path/Op/Vcarve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Op/Vcarve.py b/src/Mod/CAM/Path/Op/Vcarve.py index 092eefa347..6d92417ca4 100644 --- a/src/Mod/CAM/Path/Op/Vcarve.py +++ b/src/Mod/CAM/Path/Op/Vcarve.py @@ -457,7 +457,9 @@ class ObjectVcarve(PathEngraveBase.ObjectOp): obj.Discretize = 0.25 obj.Tolerance = Path.Preferences.defaultGeometryTolerance() # keep copy in local object to use in methods which do not operate directly on obj - self.Tolerance = obj.Tolerance + # we use getattr because OpsDefaultEditor may trigger this method to gather list of + # default operation settings but reading from OpPrototype object fails + self.Tolerance = getattr(obj, "Tolerance", Path.Preferences.defaultGeometryTolerance()) self.setupAdditionalProperties(obj) def opOnDocumentRestored(self, obj):