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:
Andrej730
2025-09-02 17:09:35 +05:00
parent 99ca1c7eb4
commit d5ff48fbc9
+1
View File
@@ -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", "")