Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed May 30, 2024
1 parent b4cb347 commit 67f73e6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ def __get_image_data_mapping(sockets, results, use_tile, export_settings) -> Exp
else:
composed_image.fill_image(result.shader_node.image, dst_chan, src_chan)
else:
composed_image.fill_image_bw_tile(result.shader_node.image, export_settings['current_udim_info']['tile'], dst_chan)
if src_chan == Channel.RGB2BW:
composed_image.fill_image_bw_tile(result.shader_node.image, export_settings['current_udim_info']['tile'], dst_chan)
else:
composed_image.fill_image_tile(result.shader_node.image, export_settings['current_udim_info']['tile'], dst_chan, src_chan)

# Since metal/roughness are always used together, make sure
# the other channel is filled.
Expand Down

0 comments on commit 67f73e6

Please sign in to comment.