Skip to content
Snippets Groups Projects
Commit d961b98b authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix T44947: OBJ importer adding dummy empty matslot (in non-split case).

parent 4b44a84b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment