diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-12-19 11:10:41 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-12-19 11:10:41 +0300 |
commit | 9b5b83797157bc46317c6c816e3353365cc05940 (patch) | |
tree | fa702ca545f1dba521e9e22efce65704509f4a59 | |
parent | 6cdbffbc229bf263fa4b9b82a6e33b591c32934c (diff) |
Fix for Fix (c): T52945: OBJ import - load_material_image - map_options not parsed correctly.
rBAe8f09a8e0b28 missed the case where we have no bump multiplicator at all!
Thanks to sebastian_k for the report over IRC.
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index ce36f5ca..c120e540 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -177,7 +177,7 @@ def create_materials(filepath, relpath, elif type == 'Bump': bump_mult = map_options.get(b'-bm') - bump_mult = float(bump_mult[0]) if len(bump_mult) > 1 else 1.0 + bump_mult = float(bump_mult[0]) if (bump_mult is not None and len(bump_mult) > 1) else 1.0 if use_cycles: mat_wrap.normal_image_set(image) |