From 58e5857aa78bb1d090c2f2de9ec5b6f39ac084ca Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 18 May 2019 19:38:17 +0200 Subject: Update for removal of image.use_alpha --- io_import_images_as_planes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'io_import_images_as_planes.py') 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) -- cgit v1.2.3