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