[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53375] trunk/blender/intern/cycles/ blender/addon/ui.py: Fix cycles python error in some panels, was not updated for new list template yet.

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Dec 28 15:46:44 CET 2012


Revision: 53375
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53375
Author:   blendix
Date:     2012-12-28 14:46:43 +0000 (Fri, 28 Dec 2012)
Log Message:
-----------
Fix cycles python error in some panels, was not updated for new list template yet.

Modified Paths:
--------------
    trunk/blender/intern/cycles/blender/addon/ui.py

Modified: trunk/blender/intern/cycles/blender/addon/ui.py
===================================================================
--- trunk/blender/intern/cycles/blender/addon/ui.py	2012-12-28 14:46:32 UTC (rev 53374)
+++ trunk/blender/intern/cycles/blender/addon/ui.py	2012-12-28 14:46:43 UTC (rev 53375)
@@ -231,7 +231,7 @@
         rd = scene.render
 
         row = layout.row()
-        row.template_list(rd, "layers", rd.layers, "active_index", rows=2)
+        row.template_list("RENDER_UL_renderlayers", "", rd, "layers", rd.layers, "active_index", rows=2)
 
         col = row.column(align=True)
         col.operator("scene.render_layer_add", icon='ZOOMIN', text="")
@@ -377,7 +377,7 @@
         if ob:
             row = layout.row()
 
-            row.template_list(ob, "material_slots", ob, "active_material_index", rows=2)
+            row.template_list("MATERIAL_UL_matslots", "", ob, "material_slots", ob, "active_material_index", rows=2)
 
             col = row.column(align=True)
             col.operator("object.material_slot_add", icon='ZOOMIN', text="")
@@ -932,7 +932,7 @@
         part = psys.settings
 
         row = layout.row()
-        row.template_list(part, "texture_slots", part, "active_texture_index", rows=2)
+        row.template_list("TEXTURE_UL_texslots", "", part, "texture_slots", part, "active_texture_index", rows=2)
 
         col = row.column(align=True)
         col.operator("texture.slot_move", text="", icon='TRIA_UP').type = 'UP'




More information about the Bf-blender-cvs mailing list