Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-12-28 14:48:12 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-12-28 14:48:12 +0400
commit868c331064696db061eb0091bd4d7ddacfc951d8 (patch)
tree17990475fc1e1e22fe69a394ee5d634766d96b69 /texture_paint_layer_manager.py
parent108f7a74b973a11b42aed2a64e2e09f9151a7e00 (diff)
Updated to use UI_UL_list as template_list...
Diffstat (limited to 'texture_paint_layer_manager.py')
-rw-r--r--texture_paint_layer_manager.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/texture_paint_layer_manager.py b/texture_paint_layer_manager.py
index c62452e7..8888dd41 100644
--- a/texture_paint_layer_manager.py
+++ b/texture_paint_layer_manager.py
@@ -154,12 +154,10 @@ class OBJECT_PT_Texture_paint_layers(bpy.types.Panel):
row = layout.row()
row.label(' Add a Material first!', icon = 'ERROR')
else:
- row = layout.row()
- row.template_list(ob, "material_slots", ob,
- "active_material_index", rows=2 )
-
-
-
+ row = layout.row()
+ row.template_list("UI_UL_list", "", ob, "material_slots", ob,
+ "active_material_index", rows=2 )
+
#list Paintable textures
#TODO add filter for channel type
i = -1