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

Typo, thanks to Aleksi Juvani (@aleksijuvani) for finding it.
This commit is contained in:
Bastien Montagne 2019-01-06 18:20:10 +01:00
parent 2f77b4a720
commit 6f43027fdd
Notes: blender-bot 2023-02-14 19:22:09 +01:00
Referenced by issue #60238, Error in OBJ exporter if material has a normal map
1 changed files with 2 additions and 2 deletions

View File

@ -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)):