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

This commit is contained in:
Bastien Montagne 2015-06-05 17:00:32 +02:00
parent 4b44a84b7c
commit d961b98bbb
Notes: blender-bot 2023-02-14 19:56:28 +01:00
Referenced by issue #44947, Import WaveFront(.obj) ignores the parameter of 'Smooth Groups'.
1 changed files with 4 additions and 2 deletions

View File

@ -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)