Skip to content
Snippets Groups Projects
Commit 3b3ee36a authored by Campbell Barton's avatar Campbell Barton
Browse files

add check for 'None' textures

parent 66396376
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment