Systematically adding some custom id to template_list using default UI_UL_list class...
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 18 Feb 2013 13:31:58 +0000 (13:31 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 18 Feb 2013 13:31:58 +0000 (13:31 +0000)
anim_selection_sets.py
space_view3d_quickPrefs.py
ui_layer_manager.py

index d2898b7ec0d3a830e80aea01886a1f20b8da7b25..2f54c171e7ad6628b2efeb5a9d64625d3def50b5 100644 (file)
@@ -286,7 +286,7 @@ class DATA_PT_bone_sets(bpy.types.Panel):
 
         row = layout.row()
 
-        row.template_list("UI_UL_list", "", arm, "selection_sets", arm, "active_selection_set",
+        row.template_list("UI_UL_list", "armature_selection_sets", arm, "selection_sets", arm, "active_selection_set",
                           rows=(5 if len(arm.selection_sets) else 2))
 
         col = row.column(align=True)
index 79a7d244a24ad2274cf044899235745be27fb77a..d0eb6877d08d3c0e2741df029b4dc3172d6c2908 100644 (file)
@@ -777,7 +777,8 @@ class PANEL(bpy.types.Panel):
             split = box.split(percentage=0.7)
             col = split.row()
                        #original
-            col.template_list("UI_UL_list", "", scn, "gllightpreset", scn, "gllightpreset_index", rows=5, maxrows=5)
+            col.template_list("UI_UL_list", "gl_light_presets", scn, "gllightpreset",
+                              scn, "gllightpreset_index", rows=5, maxrows=5)
 
 #Draw the buttons
             split = split.split()
index ba6554e1e564711af0ad93bb711d4506ae8ac7d2..2912450be53727e9bbfec1ec0eaba7eccbd9d2e7 100644 (file)
@@ -701,7 +701,8 @@ class LayerGroupsUI(bpy.types.Panel):
         viewIcon = 'RESTRICT_VIEW_OFF'
         layout = self.layout
         row = layout.row()
-        row.template_list("UI_UL_list", "", context.scene, "layergroups", context.scene, "layergroups_index", rows=items)
+        row.template_list("UI_UL_list", "ui_layer_groups", context.scene, "layergroups",
+                          context.scene, "layergroups_index", rows=items)
         col =row.column(align =True)
         add = col.operator("object.layergroup_add", icon='ZOOMIN', text="")
         add.index= items