[Bf-extensions-cvs] [6f43027f] master: Fix T60238: Error in OBJ exporter if material has a normal map.

Bastien Montagne noreply at git.blender.org
Sun Jan 6 18:21:29 CET 2019


Commit: 6f43027fdde5724980fc26dd4f740aa78205b6e7
Author: Bastien Montagne
Date:   Sun Jan 6 18:20:10 2019 +0100
Branches: master
https://developer.blender.org/rBA6f43027fdde5724980fc26dd4f740aa78205b6e7

Fix T60238: Error in OBJ exporter if material has a normal map.

Typo, thanks to Aleksi Juvani (@aleksijuvani) for finding it.

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

M	io_scene_obj/export_obj.py

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

diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index 0e905141..064484ff 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -138,8 +138,8 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
                                                        path_mode, "", copy_set, image.library)
                     options = []
                     if key == "map_Bump":
-                        if mat_wrap.normalmap_strengh != 1.0:
-                            options.append('-bm %.6f' % mat_wrap.normalmap_strengh)
+                        if mat_wrap.normalmap_strength != 1.0:
+                            options.append('-bm %.6f' % mat_wrap.normalmap_strength)
                     if tex_wrap.translation != Vector((0.0, 0.0, 0.0)):
                         options.append('-o %.6f %.6f %.6f' % tex_wrap.translation[:])
                     if tex_wrap.scale != Vector((1.0, 1.0, 1.0)):



More information about the Bf-extensions-cvs mailing list