mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
Fix "Copy Attribute Name" sometimes missing from attributes context menu
Due to a possibly unbound `url` variable this button sometimes went missing https://files.catbox.moe/2r8adp.png
This commit is contained in:
@@ -1438,6 +1438,7 @@ def draw_custom_context_menu(self: bpy.types.Menu, context: bpy.types.Context) -
|
||||
|
||||
description = attr.description
|
||||
ifc_class = attr.ifc_class
|
||||
url = ""
|
||||
if ifc_class:
|
||||
try:
|
||||
url = get_entity_doc(version, ifc_class).get("spec_url", "")
|
||||
|
||||
Reference in New Issue
Block a user