[Bf-blender-cvs] [072fbb030a4] functions: fix for reroute nodes

Jacques Lucke noreply at git.blender.org
Thu Apr 4 17:53:46 CEST 2019


Commit: 072fbb030a44abc83bfd396a5dba3f48e8acb762
Author: Jacques Lucke
Date:   Thu Apr 4 17:53:37 2019 +0200
Branches: functions
https://developer.blender.org/rB072fbb030a44abc83bfd396a5dba3f48e8acb762

fix for reroute nodes

===================================================================

M	release/scripts/startup/function_nodes/sync.py

===================================================================

diff --git a/release/scripts/startup/function_nodes/sync.py b/release/scripts/startup/function_nodes/sync.py
index dbb3fdedc6e..1650b2ff00a 100644
--- a/release/scripts/startup/function_nodes/sync.py
+++ b/release/scripts/startup/function_nodes/sync.py
@@ -1,5 +1,6 @@
 import bpy
 from pprint import pprint
+from . base import BaseNode
 from . tree_data import TreeData
 from . graph import DirectedGraphBuilder
 from contextlib import contextmanager
@@ -87,8 +88,9 @@ def rebuild_currently_outdated_nodes(tree):
 
 def iter_nodes_with_outdated_sockets(tree):
     for node in tree.nodes:
-        if not node_matches_current_declaration(node):
-            yield node
+        if isinstance(node, BaseNode):
+            if not node_matches_current_declaration(node):
+                yield node
 
 def node_matches_current_declaration(node):
     from . socket_builder import SocketBuilder



More information about the Bf-blender-cvs mailing list