Skip to content

Commit

Permalink
Fix exporting transparency of baked parts with HDR range > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vbousquet committed Aug 21, 2023
1 parent d231884 commit ec206ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/vpx_lightmapper/vlm_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def append_structure(src_path, mode, hashed):
objects = [obj for obj in result_col.all_objects if obj.vlmSettings.bake_nestmap == nestmap_index]
if not objects:
break
is_hdr = next( (o for o in objects if o.vlmSettings.bake_hdr_range > 1.0), None) is not None
is_hdr = next( (o for o in objects if o.vlmSettings.bake_type == 'lightmap' and o.vlmSettings.bake_hdr_range > 1.0), None) is not None
base_path = bpy.path.abspath(f'{bakepath}Export/Nestmap {nestmap_index}')
nestmap_path = f'{base_path}.exr' if is_hdr else f'{base_path}.webp'
if not os.path.exists(nestmap_path):
Expand Down

0 comments on commit ec206ef

Please sign in to comment.