[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3423] trunk/py/scripts/addons/ io_import_images_as_planes.py: fix: reversed alpha mapping in cycles

Florian Meyer florianfelix at web.de
Wed May 30 01:02:00 CEST 2012


Revision: 3423
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3423
Author:   testscreenings
Date:     2012-05-29 23:01:59 +0000 (Tue, 29 May 2012)
Log Message:
-----------
fix: reversed alpha mapping in cycles

Modified Paths:
--------------
    trunk/py/scripts/addons/io_import_images_as_planes.py

Modified: trunk/py/scripts/addons/io_import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/io_import_images_as_planes.py	2012-05-29 22:19:57 UTC (rev 3422)
+++ trunk/py/scripts/addons/io_import_images_as_planes.py	2012-05-29 23:01:59 UTC (rev 3423)
@@ -322,8 +322,8 @@
         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 @@
         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])
 
 



More information about the Bf-extensions-cvs mailing list