mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +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
|
description = attr.description
|
||||||
ifc_class = attr.ifc_class
|
ifc_class = attr.ifc_class
|
||||||
|
url = ""
|
||||||
if ifc_class:
|
if ifc_class:
|
||||||
try:
|
try:
|
||||||
url = get_entity_doc(version, ifc_class).get("spec_url", "")
|
url = get_entity_doc(version, ifc_class).get("spec_url", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user