Browse Source

Fix crash in dynatext python nodes

pull/109/head
Adam Johnson 6 years ago
parent
commit
77c1f7f230
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/nodes/node_python.py

2
korman/nodes/node_python.py

@ -654,7 +654,7 @@ class PlasmaAttribTextureNode(idprops.IDPropMixin, PlasmaAttribNodeBase, bpy.typ
# Your attribute stuff here...
if attrib == "ptAttribDynamicMap":
if not self._is_dyntext(material, texture):
if not self._is_dyntext(texture):
self.raise_error("Texture '{}' is not a Dynamic Text Map".format(self.texture_name))
name = "{}_{}_DynText".format(material.name, texture.name)
return exporter.mgr.find_create_key(plDynamicTextMap, name=name, so=so)

Loading…
Cancel
Save