diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-05 18:06:26 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-05 18:06:26 +0300 |
commit | df9b373f660c931426f65deae01ea8bccc4be628 (patch) | |
tree | 4c450e2a7afd5ee01c02aeb667284b0b845fd937 /io_scene_obj | |
parent | 3b9704930864a72e399341c3f685e8879a79340a (diff) |
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).
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index e6452eb9..b356da75 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Wavefront OBJ format", "author": "Campbell Barton, Bastien Montagne", - "version": (2, 1, 2), + "version": (2, 1, 3), "blender": (2, 74, 0), "location": "File > Import-Export", "description": "Import-Export OBJ, Import OBJ mesh, UV's, " diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 458a73a6..2ad8c0c2 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -116,7 +116,7 @@ def create_materials(filepath, relpath, mtex.texture = texture mtex.texture_coords = 'UV' - mtex.use_map_specular = True + mtex.use_map_color_spec = True elif type == 'Bump': mtex = blender_material.texture_slots.add() |