From 7cd98c4dd4b83e4fa3f6624a4256c5d557affbe3 Mon Sep 17 00:00:00 2001
From: Kalle-Samuli Riihikoski <haikalle@gmail.com>
Date: Wed, 13 Mar 2019 18:01:20 +0200
Subject: [PATCH] fixes alpha node linking bug

---
 io_coat3D/tex.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index 48908606a..8b1f89303 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -555,7 +555,8 @@ def CreateTextureLine(type, act_material, main_mat, texcoat, coat3D, notegroup,
 
     if(tile_list):
         node = texture_node_tree
-        act_material.links.new(node.outputs[1], notegroup.inputs[8])
+        if (type['name'] == 'color'):
+            act_material.links.new(node.outputs[1], notegroup.inputs[8])
 
 
     else:
-- 
GitLab