Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Meyer <florianfelix@web.de>2012-05-30 03:01:59 +0400
committerFlorian Meyer <florianfelix@web.de>2012-05-30 03:01:59 +0400
commit22daa39b737381aec73ac14fd764fce287da9938 (patch)
tree2508101ecb59aabbe55de10ddf795c3673302013 /io_import_images_as_planes.py
parent030cbd62d543d9dec01a50f54489aaa9d042c1c3 (diff)
fix: reversed alpha mapping in cycles
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 222c7672..fdf46d28 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])