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-03-24 14:22:34 +0400
committerFlorian Meyer <florianfelix@web.de>2012-03-24 14:22:34 +0400
commitbe0ad5593d991c43c9f6cfe2cc6c838f4a5c5191 (patch)
treef99fd45711d1e9f026167a5a71d0189b61d83b68 /io_import_images_as_planes.py
parentb6d1cb0afaf8d0f3d8d15dd8eced37958dd77803 (diff)
added per user request: receive transparent material option
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index f69bc378..6a4797bf 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -19,8 +19,8 @@
bl_info = {
"name": "Import Images as Planes",
"author": "Florian Meyer (tstscr)",
- "version": (1, 0),
- "blender": (2, 6, 1),
+ "version": (1, 1),
+ "blender": (2, 6, 3),
"location": "File > Import > Images as Planes",
"description": "Imports images and creates planes with the appropriate "
"aspect ratio. The images are mapped to the planes.",
@@ -126,6 +126,7 @@ def create_material_for_texture(self, texture):
material.use_transparency = self.use_transparency
material.transparency_method = self.transparency_method
material.use_shadeless = self.use_shadeless
+ material.use_transparent_shadows = self.use_transparent_shadows
return material
# if no material found: create one
@@ -145,6 +146,7 @@ def create_material_for_texture(self, texture):
material.use_transparency = self.use_transparency
material.transparency_method = self.transparency_method
material.use_shadeless = self.use_shadeless
+ material.use_transparent_shadows = self.use_transparent_shadows
return material
@@ -347,6 +349,11 @@ class IMPORT_OT_image_to_plane(Operator, ImportHelper, AddObjectHelper):
'Raytrace',
'Use raytracing for transparent refraction rendering.')),
)
+ use_transparent_shadows = BoolProperty(
+ name="Receive Transparent",
+ description="Set material to receive transparent shadows",
+ default=False,
+ )
# -------------
# Image Options
@@ -380,6 +387,7 @@ class IMPORT_OT_image_to_plane(Operator, ImportHelper, AddObjectHelper):
box.prop(self, "use_transparency")
box.prop(self, "use_premultiply")
box.prop(self, "transparency_method", expand=True)
+ box.prop(self, "use_transparent_shadows")
box = layout.box()
box.label("Plane dimensions:", icon='ARROW_LEFTRIGHT')