Fix AttributeError in node groups when custom socket has no 'draw' function #117061
|
@ -952,7 +952,8 @@ class NODE_PT_node_tree_interface(Panel):
|
||||||
if 'OUTPUT' in active_item.in_out:
|
if 'OUTPUT' in active_item.in_out:
|
||||||
layout.prop(active_item, "attribute_domain")
|
layout.prop(active_item, "attribute_domain")
|
||||||
layout.prop(active_item, "default_attribute_name")
|
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':
|
if active_item.item_type == 'PANEL':
|
||||||
layout.prop(active_item, "description")
|
layout.prop(active_item, "description")
|
||||||
|
|
Loading…
Reference in New Issue