From df9b373f660c931426f65deae01ea8bccc4be628 Mon Sep 17 00:00:00 2001 From: Bastien Montagne <montagne29@wanadoo.fr> Date: Sun, 5 Jul 2015 17:06:26 +0200 Subject: [PATCH] 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). --- io_scene_obj/__init__.py | 2 +- 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 e6452eb9e..b356da759 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 458a73a6c..2ad8c0c20 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() -- GitLab