Skip to content
Snippets Groups Projects
Commit 868c3310 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Updated to use UI_UL_list as template_list...

parent 108f7a74
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,7 @@ class property_group_renderer(bpy.types.Panel):
)
elif current_property['type'] in ['template_list']:
layout.template_list(
layout.template_list("UI_UL_list", "",
current_property['src'](supercontext, context),
current_property['src_attr'],
current_property['trg'](supercontext, context),
......
......@@ -276,7 +276,7 @@ class RENDER_PT_network_slaves(NeedValidAddress, NetRenderButtonsPanel, bpy.type
netsettings = context.scene.network_render
row = layout.row()
row.template_list(netsettings, "slaves", netsettings, "active_slave_index", rows=2)
row.template_list("UI_UL_list", "", netsettings, "slaves", netsettings, "active_slave_index", rows=2)
sub = row.column(align=True)
sub.operator("render.netclientslaves", icon='FILE_REFRESH', text="")
......@@ -307,7 +307,8 @@ class RENDER_PT_network_slaves_blacklist(NeedValidAddress, NetRenderButtonsPanel
netsettings = context.scene.network_render
row = layout.row()
row.template_list(netsettings, "slaves_blacklist", netsettings, "active_blacklisted_slave_index", rows=2)
row.template_list("UI_UL_list", "", netsettings, "slaves_blacklist",
netsettings, "active_blacklisted_slave_index", rows=2)
sub = row.column(align=True)
sub.operator("render.netclientwhitelistslave", icon='ZOOMOUT', text="")
......@@ -337,7 +338,7 @@ class RENDER_PT_network_jobs(NeedValidAddress, NetRenderButtonsPanel, bpy.types.
netsettings = context.scene.network_render
row = layout.row()
row.template_list(netsettings, "jobs", netsettings, "active_job_index", rows=2)
row.template_list("UI_UL_list", "", netsettings, "jobs", netsettings, "active_job_index", rows=2)
sub = row.column(align=True)
sub.operator("render.netclientstatus", icon='FILE_REFRESH', text="")
......
......@@ -101,7 +101,7 @@ class SESSIONS_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
if (bpy.passwordCorrect == True and bpy.loginInserted == True):
layout = self.layout
layout.template_list(ore, 'all_sessions', ore, 'selected_session', rows=5)
layout.template_list("UI_UL_list", "", ore, 'all_sessions', ore, 'selected_session', rows=5)
layout.operator('ore.cancel_session')
if (bpy.cancelError == True):
layout.label("This session cannot be cancelled")
......
......@@ -77,7 +77,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
# Rig type list
row = layout.row()
row.template_list(id_store, "rigify_types", id_store, 'rigify_active_type')
row.template_list("UI_UL_list", "", id_store, "rigify_types", id_store, 'rigify_active_type')
op = layout.operator("armature.metarig_sample_add", text="Add sample")
op.metarig_type = id_store.rigify_types[id_store.rigify_active_type].name
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment