diff --git a/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_materials_unlit.py b/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_materials_unlit.py index 7ffc334c0..0be432d72 100644 --- a/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_materials_unlit.py +++ b/addons/io_scene_gltf2/blender/exp/material/gltf2_blender_gather_materials_unlit.py @@ -49,7 +49,7 @@ def detect_shadeless_material(blender_material, export_settings): else: return None - socket = NodeSocket(socket, []) + socket = NodeSocket(socket, [blender_material.node_tree]) # Be careful not to misidentify a lightpath trick as mix-alpha. result = __detect_lightpath_trick(socket)