Browse Source

Merge pull request #6541 from tschw/Blender_misc_fixes

Blender: Avoid obscure error on certain non-image textures.
Ricardo Cabello 10 years ago
parent
commit
67cc278053
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/exporters/blender/addons/io_three/exporter/api/texture.py

+ 2 - 1
utils/exporters/blender/addons/io_three/exporter/api/texture.py

@@ -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