]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't check group in get_unlit_inputs
authorMikko Rasa <tdb@tdb.fi>
Sat, 5 Mar 2022 17:45:21 +0000 (19:45 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 5 Mar 2022 17:46:17 +0000 (19:46 +0200)
It's fundamentally different from the other functions and wouldn't work
properly with a group.

blender/io_mspgl/material.py

index b30a2ef5d90fef6e7ec1aa1337d6fa5002661136..519154449c25da11c7025784e9bae70e980705e5 100644 (file)
@@ -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':