mat/lamp/world.textures -> texture_slots

object.materials -> material_slots

since neither contain textures or materials directly.
This commit is contained in:
2010-02-07 12:51:47 +00:00
parent 3238730e36
commit bb571c67cb
7 changed files with 12 additions and 12 deletions

View File

@@ -460,7 +460,7 @@ class _3ds_chunk(object):
def get_material_images(material):
# blender utility func.
if material:
return [s.texture.image for s in material.textures if s and s.texture.type == 'IMAGE' and s.texture.image]
return [s.texture.image for s in material.texture_slots if s and s.texture.type == 'IMAGE' and s.texture.image]
return []
# images = []