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
Branches
Tags
No related merge requests found
...@@ -124,7 +124,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): ...@@ -124,7 +124,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
image_map = {} image_map = {}
# backwards so topmost are highest priority # backwards so topmost are highest priority
for mtex in reversed(mat.texture_slots): 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 image = mtex.texture.image
if image: if image:
# texface overrides others # texface overrides others
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment