Browse Source

Fix error in fetching texture attributes

pull/23/head
Adam Johnson 9 years ago
parent
commit
84c300fe6c
  1. 5
      korman/nodes/node_python.py

5
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

Loading…
Cancel
Save