diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-04 05:08:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-04 05:08:18 +0400 |
commit | 23ead6420a35407e879713614d955a237b8c840c (patch) | |
tree | 7c45b8aac605d7f4a4e899f9161795e333a1134a /io_scene_obj | |
parent | f3d7438e0193254276d0fdb99dff100e443f58c3 (diff) |
fix for exporting OBJ files without a material - would get blank 'newmtl' ID's
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 1bb41ebf..a0926cc4 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -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. |