Преглед на файлове

Merge pull request #6541 from tschw/Blender_misc_fixes

Blender: Avoid obscure error on certain non-image textures.
Ricardo Cabello преди 10 години
родител
ревизия
67cc278053
променени са 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