From: Mikko Rasa Date: Sat, 5 Mar 2022 17:45:21 +0000 (+0200) Subject: Don't check group in get_unlit_inputs X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=dcc5ed277f3caf8ed0298f72284c0cf5c8cc6361;p=libs%2Fgl.git Don't check group in get_unlit_inputs It's fundamentally different from the other functions and wouldn't work properly with a group. --- diff --git a/blender/io_mspgl/material.py b/blender/io_mspgl/material.py index b30a2ef5..51915444 100644 --- a/blender/io_mspgl/material.py +++ b/blender/io_mspgl/material.py @@ -57,9 +57,7 @@ def check_additive_blend(node_tree, node): def get_unlit_inputs(node_tree, node, additive): from .util import get_linked_node_and_socket - if node.type=='GROUP': - return check_group(node_tree, node, get_unlit_inputs) - elif node.type=='MIX_SHADER' and not additive: + if node.type=='MIX_SHADER' and not additive: shader1, _ = get_linked_node_and_socket(node_tree, node.inputs[1]) shader2, _ = get_linked_node_and_socket(node_tree, node.inputs[2]) if shader1.type=='BSDF_TRANSPARENT' and shader2.type=='EMISSION':