Skip to content

Commit

Permalink
Fix Roughness sheen check
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Sep 13, 2023
1 parent 430fb1a commit 7a1890f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __get_image_data_mapping(sockets, default_sockets, results, export_settings)
# So export is correct if user plug the texture directly to the socket
if socket.name == 'Metallic':
src_chan = Channel.B
elif socket.name == 'Roughness':
elif socket.name == 'Roughness' and socket.node.type == "BSDF_PRINCIPLED":
src_chan = Channel.G
elif socket.name == 'Occlusion':
src_chan = Channel.R
Expand Down

0 comments on commit 7a1890f

Please sign in to comment.