Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-04 05:08:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-04 05:08:18 +0400
commit23ead6420a35407e879713614d955a237b8c840c (patch)
tree7c45b8aac605d7f4a4e899f9161795e333a1134a /io_scene_obj
parentf3d7438e0193254276d0fdb99dff100e443f58c3 (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.py2
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.