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:
parent
6cdbffbc22
commit
9b5b837971
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue