From 84c300fe6c1cbfba29f9b483764864dc0811547b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 18 Jul 2015 19:53:52 -0400 Subject: [PATCH] Fix error in fetching texture attributes --- korman/nodes/node_python.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/korman/nodes/node_python.py b/korman/nodes/node_python.py index 9e94c44..be25501 100644 --- a/korman/nodes/node_python.py +++ b/korman/nodes/node_python.py @@ -511,7 +511,10 @@ class PlasmaAttribTextureNode(PlasmaAttribNodeBase, bpy.types.Node): tex_slot = material.texture_slots.get(self.texture_name, None) if tex_slot is None: self.raise_error("invalid Texture '{}'".format(self.texture_name)) - attrib = self.attribute_type + attrib = self.to_socket + if attrib is None: + self.raise_error("must be connected to a Python File node!") + attrib = attrib.attribute_type # Helpers texture = tex_slot.texture