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:
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 72b95bda..d610bff5 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -938,8 +938,10 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
return plane
def apply_image_options(self, image):
- image.use_alpha = self.use_transparency
- image.alpha_mode = self.alpha_mode
+ if self.use_transparency == False:
+ image.alpha_mode = 'IGNORE'
+ else:
+ image.alpha_mode = self.alpha_mode
if self.relative:
try: # can't always find the relative path (between drive letters on windows)