Skip to content

Commit

Permalink
Fix error with autolink and radius renaming. Fixes issue #420
Browse files Browse the repository at this point in the history
  • Loading branch information
shaise committed Dec 8, 2024
1 parent b6779ed commit 6021a6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SheetMetalCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6021a6f

Please sign in to comment.