diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-05 18:00:32 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-05 18:00:32 +0300 |
commit | d961b98bbb5c5539c69d96f08caeee97e3333c79 (patch) | |
tree | 8ecb4bec792778a78ea974d54ad53a551934eb30 /io_scene_obj | |
parent | 4b44a84b7cd40a12525ac0db8271f2da119f3758 (diff) |
Fix T44947: OBJ importer adding dummy empty matslot (in non-split case).
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 5054e63a..330e0694 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -170,8 +170,10 @@ def create_materials(filepath, relpath, unique_materials[name] = bpy.data.materials.new(name.decode('utf-8', "replace")) unique_material_images[name] = None # assign None to all material images to start with, add to later. - unique_materials[None] = None - unique_material_images[None] = None + # XXX Why was this needed? Cannot find any good reason, and adds stupid empty matslot in case we do not separate + # mesh (see T44947). + #~ unique_materials[None] = None + #~ unique_material_images[None] = None for libname in material_libs: # print(libname) |