From 7a1890fee74778ed74578b1049f796d0fd8745ce Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Wed, 13 Sep 2023 17:51:16 +0200 Subject: [PATCH] Fix Roughness sheen check --- .../blender/exp/material/gltf2_blender_gather_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_image.py b/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_image.py index 5a2cc0ee1..b8a04d7a2 100644 --- a/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_image.py +++ b/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_image.py @@ -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