From dcc5ed277f3caf8ed0298f72284c0cf5c8cc6361 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 5 Mar 2022 19:45:21 +0200 Subject: [PATCH] Don't check group in get_unlit_inputs It's fundamentally different from the other functions and wouldn't work properly with a group. --- blender/io_mspgl/material.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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': -- 2.45.2