From: Mikko Rasa Date: Sun, 11 Apr 2021 20:39:16 +0000 (+0300) Subject: Recognize textures through an RGB to BW node in Blender X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3c0525a665f9a4d87b2937bcb9282f51cc0017a1;p=libs%2Fgl.git Recognize textures through an RGB to BW node in Blender --- diff --git a/blender/io_mspgl/material.py b/blender/io_mspgl/material.py index f7f2c5eb..5e06fd8a 100644 --- a/blender/io_mspgl/material.py +++ b/blender/io_mspgl/material.py @@ -32,6 +32,8 @@ class MaterialProperty: if from_node: if from_node.type=='NORMAL_MAP': from_node, _ = get_linked_node_and_socket(node_tree, from_node.inputs["Color"]) + elif from_node.type=='RGBTOBW': + from_node, _ = get_linked_node_and_socket(node_tree, from_node.inputs["Color"]) if alpha_socket: alpha_from, _ = get_linked_node_and_socket(node_tree, alpha_socket)