From e3b2ce53d631760b0514ddb79be77b018aa6be23 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 13 Jan 2018 15:43:19 -0500 Subject: [PATCH] Fix another idprop oversight --- korman/nodes/node_python.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/korman/nodes/node_python.py b/korman/nodes/node_python.py index ede551d..89532a8 100644 --- a/korman/nodes/node_python.py +++ b/korman/nodes/node_python.py @@ -634,10 +634,9 @@ class PlasmaAttribTextureNode(idprops.IDPropMixin, PlasmaAttribNodeBase, bpy.typ self.outputs[0].link_limit = 1 def draw_buttons(self, context, layout): - layout.prop_search(self, "material_name", bpy.data, "materials") - material = bpy.data.materials.get(self.material_name, None) - if material is not None: - layout.prop_search(self, "texture_name", material, "texture_slots") + layout.prop(self, "material") + if self.material is not None: + layout.prop(self, "texture") def get_key(self, exporter, so): if self.material is None: