From 22daa39b737381aec73ac14fd764fce287da9938 Mon Sep 17 00:00:00 2001
From: Florian Meyer <florianfelix@web.de>
Date: Tue, 29 May 2012 23:01:59 +0000
Subject: [PATCH] fix: reversed alpha mapping in cycles

---
 io_import_images_as_planes.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 222c76729..fdf46d28b 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -322,8 +322,8 @@ def create_cycles_material(self, image):
         tex_image.show_texture = True
         node_tree.links.new(out_node.inputs[0], mix_shader.outputs[0])
         node_tree.links.new(mix_shader.inputs[0], tex_image.outputs[1])
-        node_tree.links.new(mix_shader.inputs[1], bsdf_diffuse.outputs[0])
-        node_tree.links.new(mix_shader.inputs[2], bsdf_transparent.outputs[0])
+        node_tree.links.new(mix_shader.inputs[2], bsdf_diffuse.outputs[0])
+        node_tree.links.new(mix_shader.inputs[1], bsdf_transparent.outputs[0])
         node_tree.links.new(bsdf_diffuse.inputs[0], tex_image.outputs[0])
 
     
@@ -336,8 +336,8 @@ def create_cycles_material(self, image):
         tex_image.show_texture = True
         node_tree.links.new(out_node.inputs[0], mix_shader.outputs[0])
         node_tree.links.new(mix_shader.inputs[0], tex_image.outputs[1])
-        node_tree.links.new(mix_shader.inputs[1], emission.outputs[0])
-        node_tree.links.new(mix_shader.inputs[2], bsdf_transparent.outputs[0])
+        node_tree.links.new(mix_shader.inputs[2], emission.outputs[0])
+        node_tree.links.new(mix_shader.inputs[1], bsdf_transparent.outputs[0])
         node_tree.links.new(emission.inputs[0], tex_image.outputs[0])
 
 
-- 
GitLab