diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-15 14:46:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-15 14:46:36 +0400 |
commit | 3b3ee36a1d0bce6529b19af4510757b43ee0c846 (patch) | |
tree | 113f7aab6b508c96a8f03e09415ddf2e452cb3c8 /io_scene_obj | |
parent | 66396376c78c3e4f2bd02fbaa94598598eac5445 (diff) |
add check for 'None' textures
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/export_obj.py | 2 |
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 |