diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-09 12:07:30 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-09 12:07:30 +0300 |
commit | 84baf76f48e023eafde8d567490b7b0ba901e9fb (patch) | |
tree | baaed01820af3fac06d1a4a0ab7c79144cdc0a58 /io_scene_obj | |
parent | 1786f9948cba41dac409cd5449c214ab048d3aab (diff) |
Fix T51658: Exporting and Importing OBJ Files isn't working.
Silly mistake in recent addition of Cycles basic material import...
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/__init__.py | 4 | ||||
-rw-r--r-- | io_scene_obj/import_obj.py | 6 |
2 files changed, 5 insertions, 5 deletions
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 |