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

fix for exporting OBJ files without a material - would get blank 'newmtl' ID's

parent f3d7438e
No related branches found
No related tags found
No related merge requests found
......@@ -393,7 +393,7 @@ def write_file(filepath, objects, scene,
# avoid bad index errors
if not materials:
materials = [None]
material_names = [""]
material_names = [name_compat(None)]
# Sort by Material, then images
# so we dont over context switch in the obj file.
......
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