From 6021a6f7e5689c8070a6e0fa9ddb3489eb54a8a3 Mon Sep 17 00:00:00 2001 From: shai Date: Sun, 8 Dec 2024 19:46:29 +0200 Subject: [PATCH] Fix error with autolink and radius renaming. Fixes issue #420 --- SheetMetalCmd.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SheetMetalCmd.py b/SheetMetalCmd.py index 08f810d..b836a11 100644 --- a/SheetMetalCmd.py +++ b/SheetMetalCmd.py @@ -1859,10 +1859,13 @@ def Activated(self): if SheetMetalTools.is_autolink_enabled(): root = SheetMetalTools.getOriginalBendObject(newObj) if root: - newObj.setExpression("radius", root.Label + ".radius") + if hasattr(root, "Radius"): + newObj.setExpression("radius", root.Label + ".Radius") + elif hasattr(root, "radius"): + newObj.setExpression("radius", root.Label + ".radius") newObj.baseObject[0].ViewObject.Visibility = False - dialog = SMBendWallTaskPanel(newObj) doc.recompute() + dialog = SMBendWallTaskPanel(newObj) Gui.Control.showDialog(dialog) return