[Bf-extensions-cvs] [7cd98c4d] master: fixes alpha node linking bug

Kalle-Samuli Riihikoski noreply at git.blender.org
Wed Mar 13 17:02:46 CET 2019


Commit: 7cd98c4dd4b83e4fa3f6624a4256c5d557affbe3
Author: Kalle-Samuli Riihikoski
Date:   Wed Mar 13 18:01:20 2019 +0200
Branches: master
https://developer.blender.org/rBA7cd98c4dd4b83e4fa3f6624a4256c5d557affbe3

fixes alpha node linking bug

===================================================================

M	io_coat3D/tex.py

===================================================================

diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index 48908606..8b1f8930 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:



More information about the Bf-extensions-cvs mailing list