|
@@ -174,5 +174,6 @@ def textures():
|
|
if mat.users == 0:
|
|
if mat.users == 0:
|
|
continue
|
|
continue
|
|
for slot in mat.texture_slots:
|
|
for slot in mat.texture_slots:
|
|
- if slot and slot.use and slot.texture.type == IMAGE:
|
|
|
|
|
|
+ if (slot and slot.use and
|
|
|
|
+ slot.texture and slot.texture.type == IMAGE):
|
|
yield slot.texture.name
|
|
yield slot.texture.name
|