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