소스 검색

Avoid obscure error on certain non-image textures.

tschw 10 년 전
부모
커밋
504bdabe07
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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