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="")
|
||||
|
||||
Reference in New Issue
Block a user