mat/lamp/world.textures -> texture_slots
object.materials -> material_slots since neither contain textures or materials directly.
This commit is contained in:
@@ -98,7 +98,7 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel):
|
||||
if ob:
|
||||
row = layout.row()
|
||||
|
||||
row.template_list(ob, "materials", ob, "active_material_index", rows=2)
|
||||
row.template_list(ob, "material_slots", ob, "active_material_index", rows=2)
|
||||
|
||||
col = row.column(align=True)
|
||||
col.operator("object.material_slot_add", icon='ZOOMIN', text="")
|
||||
|
||||
@@ -98,7 +98,7 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel):
|
||||
if tex_collection:
|
||||
row = layout.row()
|
||||
|
||||
row.template_list(idblock, "textures", idblock, "active_texture_index", rows=2)
|
||||
row.template_list(idblock, "texture_slots", idblock, "active_texture_index", rows=2)
|
||||
|
||||
col = row.column(align=True)
|
||||
col.operator("texture.slot_move", text="", icon='TRIA_UP').type = 'UP'
|
||||
|
||||
Reference in New Issue
Block a user