Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2020-11-30 20:47:05 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-11-30 20:47:05 +0300
commit5088c8d9d735a7fe91cd187d03d3afcb795bd6fa (patch)
tree77aa15aaacb4114290311fddfceff61b5aea7015 /io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py
parent5f2cb885abb90e5c0c44c3ff699502d2bc14fca9 (diff)
glTF exporter: take care of active output node
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py')
-rw-r--r--io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py
index b3012ea0..f000bb56 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_unlit.py
@@ -38,7 +38,7 @@ def detect_shadeless_material(blender_material, export_settings):
info = {}
for node in blender_material.node_tree.nodes:
- if node.type == 'OUTPUT_MATERIAL':
+ if node.type == 'OUTPUT_MATERIAL' and node.is_active_output:
socket = node.inputs[0]
break
else: