[Bf-extensions-cvs] [84baf76f] master: Fix T51658: Exporting and Importing OBJ Files isn't working.

Bastien Montagne noreply at git.blender.org
Fri Jun 9 11:08:17 CEST 2017


Commit: 84baf76f48e023eafde8d567490b7b0ba901e9fb
Author: Bastien Montagne
Date:   Fri Jun 9 11:07:30 2017 +0200
Branches: master
https://developer.blender.org/rBA84baf76f48e023eafde8d567490b7b0ba901e9fb

Fix T51658: Exporting and Importing OBJ Files isn't working.

Silly mistake in recent addition of Cycles basic material import...

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

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 6e854b9e..7712747c 100644
--- a/io_scene_obj/__init__.py
+++ b/io_scene_obj/__init__.py
@@ -21,8 +21,8 @@
 bl_info = {
     "name": "Wavefront OBJ format",
     "author": "Campbell Barton, Bastien Montagne",
-    "version": (2, 3, 4),
-    "blender": (2, 77, 0),
+    "version": (2, 3, 5),
+    "blender": (2, 78, 0),
     "location": "File > Import-Export",
     "description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures",
     "warning": "",
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 36b0106d..eb314c01 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -315,16 +315,16 @@ def create_materials(filepath, relpath,
 
                         if do_highlight:
                             if use_cycles:
-                                context_mat_wrap.hardness_value_set = 1.0
+                                context_mat_wrap.hardness_value_set(1.0)
                             # FIXME, how else to use this?
                             context_material.specular_intensity = 1.0
                         else:
                             if use_cycles:
-                                context_mat_wrap.hardness_value_set = 0.0
+                                context_mat_wrap.hardness_value_set(0.0)
 
                         if do_reflection:
                             if use_cycles:
-                                context_mat_wrap.reflect_factor_set = 1.0
+                                context_mat_wrap.reflect_factor_set(1.0)
                             context_material.raytrace_mirror.use = True
                             context_material.raytrace_mirror.reflect_factor = 1.0



More information about the Bf-extensions-cvs mailing list