diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index c1287f65e5c3fa61cf4aeef2b4650e43ec308c6b..4593fc2f6f3a2d6302d381af7ff575eec72a9d95 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -320,24 +320,32 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_ elif type == 'Ka': mtex = blender_material.texture_slots.add() + mtex.use_map_color_diffuse = False + mtex.texture = texture mtex.texture_coords = 'UV' mtex.use_map_ambient = True elif type == 'Ks': mtex = blender_material.texture_slots.add() + mtex.use_map_color_diffuse = False + mtex.texture = texture mtex.texture_coords = 'UV' mtex.use_map_specular = True elif type == 'Bump': mtex = blender_material.texture_slots.add() + mtex.use_map_color_diffuse = False + mtex.texture = texture mtex.texture_coords = 'UV' mtex.use_map_normal = True elif type == 'D': mtex = blender_material.texture_slots.add() + mtex.use_map_color_diffuse = False + mtex.texture = texture mtex.texture_coords = 'UV' mtex.use_map_alpha = True @@ -348,6 +356,8 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_ elif type == 'refl': mtex = blender_material.texture_slots.add() + mtex.use_map_color_diffuse = False + mtex.texture = texture mtex.texture_coords = 'UV' mtex.use_map_reflect = True