Node Wrangler: ui_items collection renamed to items_tree #104896

Merged
Lukas Tönne merged 2 commits from LukasTonne/blender-addons:rename-ui-items into main 2023-09-18 18:11:40 +02:00
Showing only changes of commit d92de45da2 - Show all commits

View File

@ -509,7 +509,7 @@ class NWPreviewNode(Operator, NWBase):
@classmethod @classmethod
def get_output_sockets(cls, node_tree): def get_output_sockets(cls, node_tree):
return [socket for socket in node_tree.interface.items_tree if socket.in_out in {'OUTPUT', 'BOTH'}] return [item for item in node_tree.interface.items_tree if item.item_type == 'SOCKET' and item.in_out in {'OUTPUT', 'BOTH'}]
def ensure_viewer_socket(self, node, socket_type, connect_socket=None): def ensure_viewer_socket(self, node, socket_type, connect_socket=None):
# check if a viewer output already exists in a node group otherwise create # check if a viewer output already exists in a node group otherwise create