From 34403a9720eee27b817f37b0ead13f90f24333a6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 25 Aug 2018 17:28:41 -0400 Subject: [PATCH] Fix odd traceback on NodeLinks to invalid sockets Observed in GoMePubNew blend. I'm assuming this is an old link that was made to a socket that has since been removed from a node... --- korman/nodes/node_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/nodes/node_core.py b/korman/nodes/node_core.py index ed439fe..040fe21 100644 --- a/korman/nodes/node_core.py +++ b/korman/nodes/node_core.py @@ -246,7 +246,7 @@ class PlasmaNodeBase: continue if allowed_sockets: to_from_socket = link.to_socket if socket.is_output else link.from_socket - if to_from_socket.bl_idname not in allowed_sockets: + if to_from_socket is None or to_from_socket.bl_idname not in allowed_sockets: try: self._tattle(socket, link, "(bad socket)") self.id_data.links.remove(link)