Blender: Avoid obscure error on certain non-image textures.
@@ -174,5 +174,6 @@ def textures():
if mat.users == 0:
continue
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