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

Fix T45315: Obj loader incorrectly loading specular maps.

'map_Ks' is for specularity color, not secularity intensity
(which seems to have no equivalent in OBJ).
parent 3b970493
Branches
Tags
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
bl_info = { bl_info = {
"name": "Wavefront OBJ format", "name": "Wavefront OBJ format",
"author": "Campbell Barton, Bastien Montagne", "author": "Campbell Barton, Bastien Montagne",
"version": (2, 1, 2), "version": (2, 1, 3),
"blender": (2, 74, 0), "blender": (2, 74, 0),
"location": "File > Import-Export", "location": "File > Import-Export",
"description": "Import-Export OBJ, Import OBJ mesh, UV's, " "description": "Import-Export OBJ, Import OBJ mesh, UV's, "
......
...@@ -116,7 +116,7 @@ def create_materials(filepath, relpath, ...@@ -116,7 +116,7 @@ def create_materials(filepath, relpath,
mtex.texture = texture mtex.texture = texture
mtex.texture_coords = 'UV' mtex.texture_coords = 'UV'
mtex.use_map_specular = True mtex.use_map_color_spec = True
elif type == 'Bump': elif type == 'Bump':
mtex = blender_material.texture_slots.add() mtex = blender_material.texture_slots.add()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment