[Bf-blender-cvs] [3675a0f] object_nodes: Ignore nodes that don't have the 'compile' method, to allow frames.

Lukas Tönne noreply at git.blender.org
Wed Dec 2 17:41:44 CET 2015


Commit: 3675a0fedfbbd47c1e6883849075fef8d2d5431f
Author: Lukas Tönne
Date:   Wed Dec 2 17:40:24 2015 +0100
Branches: object_nodes
https://developer.blender.org/rB3675a0fedfbbd47c1e6883849075fef8d2d5431f

Ignore nodes that don't have the 'compile' method, to allow frames.

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

M	release/scripts/startup/bl_operators/object_nodes.py

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

diff --git a/release/scripts/startup/bl_operators/object_nodes.py b/release/scripts/startup/bl_operators/object_nodes.py
index 5870d74..688bc47 100644
--- a/release/scripts/startup/bl_operators/object_nodes.py
+++ b/release/scripts/startup/bl_operators/object_nodes.py
@@ -254,6 +254,8 @@ class NodeTreeBase():
         for bnode in self.nodes:
             if not bnode.is_registered_node_type():
                 continue
+            if not hasattr(bnode, "compile"):
+                continue
 
             # proxies for inputs/outputs
             bnode_inputs = StringDict()




More information about the Bf-blender-cvs mailing list