Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-02-15 14:46:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-15 14:46:36 +0400
commit3b3ee36a1d0bce6529b19af4510757b43ee0c846 (patch)
tree113f7aab6b508c96a8f03e09415ddf2e452cb3c8
parent66396376c78c3e4f2bd02fbaa94598598eac5445 (diff)
add check for 'None' textures
-rw-r--r--io_scene_obj/export_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index 2acd861e..90d69316 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -124,7 +124,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
image_map = {}
# backwards so topmost are highest priority
for mtex in reversed(mat.texture_slots):
- if mtex and mtex.texture.type == 'IMAGE':
+ if mtex and mtex.texture and mtex.texture.type == 'IMAGE':
image = mtex.texture.image
if image:
# texface overrides others