From 3c0525a665f9a4d87b2937bcb9282f51cc0017a1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 11 Apr 2021 23:39:16 +0300 Subject: [PATCH] Recognize textures through an RGB to BW node in Blender --- blender/io_mspgl/material.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.45.2