Fix AttributeError in node groups when custom socket has no 'draw' function #117061

Merged
Jacques Lucke merged 2 commits from povmaniac/blender:povmaniac into main 2024-01-16 15:41:13 +01:00
1 changed files with 2 additions and 1 deletions

View File

@ -952,7 +952,8 @@ class NODE_PT_node_tree_interface(Panel):
if 'OUTPUT' in active_item.in_out:
layout.prop(active_item, "attribute_domain")
layout.prop(active_item, "default_attribute_name")
active_item.draw(context, layout)
if hasattr(active_item, 'draw'):
active_item.draw(context, layout)
if active_item.item_type == 'PANEL':
layout.prop(active_item, "description")