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:
authorDaniel Salazar <zanqdo@gmail.com>2010-06-20 22:59:10 +0400
committerDaniel Salazar <zanqdo@gmail.com>2010-06-20 22:59:10 +0400
commita1566caa0ac0ee6609c89f832eaaeba224a67ca7 (patch)
tree89081f568a5b7f30995598ad56aa3abfdc3ce516 /import_images_as_planes.py
parent8c949bb496b60e6ad2153a704a7b879377991550 (diff)
Patch by Oenvoyage for import images as planes, when u put use alpha, it
doesnt render out the plane, it is missing the alpha
Diffstat (limited to 'import_images_as_planes.py')
-rw-r--r--import_images_as_planes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/import_images_as_planes.py b/import_images_as_planes.py
index 3c22d573..519ec362 100644
--- a/import_images_as_planes.py
+++ b/import_images_as_planes.py
@@ -294,6 +294,8 @@ def mapset(self, value):
and self.texture_slots[0].texture.type == 'IMAGE'
and self.texture_slots[0].texture.image):
self.texture_slots[0].texture.image.premultiply = value[5]
+ if self.alpha:
+ self.texture_slots[0].map_alpha=True
bpy.types.Material.mapping = property(mapget, mapset)