Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-12-19 11:10:41 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-01 18:25:18 +0300
commit14e04305021a83fc4a89ad4192b6b8611ca4139c (patch)
treedf0a4907f529f3c950ed8daeddd78390abadbfab
parentfbe2b7652a82547f94e3c381a0af3b8d2c7da24b (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.py2
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)