[Bf-extensions-cvs] [df9b373] master: Fix T45315: Obj loader incorrectly loading specular maps.

Bastien Montagne noreply at git.blender.org
Sun Jul 5 17:24:58 CEST 2015


Commit: df9b373f660c931426f65deae01ea8bccc4be628
Author: Bastien Montagne
Date:   Sun Jul 5 17:06:26 2015 +0200
Branches: master
https://developer.blender.org/rBAdf9b373f660c931426f65deae01ea8bccc4be628

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

===================================================================

M	io_scene_obj/__init__.py
M	io_scene_obj/import_obj.py

===================================================================

diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index e6452eb..b356da7 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 458a73a..2ad8c0c 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()



More information about the Bf-extensions-cvs mailing list