diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index f69bc37861c7e7688aee23aaec1f4ee10c628d4e..6a4797bf444e4d8117c5f44688851436f573a526 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')