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.
This commit is contained in:
Bastien Montagne 2017-12-19 09:10:41 +01:00
parent 6cdbffbc22
commit 9b5b837971
1 changed files with 1 additions and 1 deletions

View File

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