From 063c6f1e2712b877278c0d9c33c83d98cfd457cd Mon Sep 17 00:00:00 2001 From: povmaniac Date: Fri, 12 Jan 2024 12:44:12 +0100 Subject: [PATCH] Fixed 'AttributeError: 'NodeTreeInterfaceSocket' object does not have 'draw' attribute in custom node groups created from external engines. This check is similar to the other one added on line 731 in the same space_node.py file --- scripts/startup/bl_ui/space_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index 8212c2b82e3..339ab26f2fb 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -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") -- 2.30.2