Browse Source

Fix another idprop oversight

pull/94/head
Adam Johnson 7 years ago
parent
commit
e3b2ce53d6
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 7
      korman/nodes/node_python.py

7
korman/nodes/node_python.py

@ -634,10 +634,9 @@ class PlasmaAttribTextureNode(idprops.IDPropMixin, PlasmaAttribNodeBase, bpy.typ
self.outputs[0].link_limit = 1 self.outputs[0].link_limit = 1
def draw_buttons(self, context, layout): def draw_buttons(self, context, layout):
layout.prop_search(self, "material_name", bpy.data, "materials") layout.prop(self, "material")
material = bpy.data.materials.get(self.material_name, None) if self.material is not None:
if material is not None: layout.prop(self, "texture")
layout.prop_search(self, "texture_name", material, "texture_slots")
def get_key(self, exporter, so): def get_key(self, exporter, so):
if self.material is None: if self.material is None:

Loading…
Cancel
Save