diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-18 20:38:17 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-20 09:25:00 +0300 |
commit | 58e5857aa78bb1d090c2f2de9ec5b6f39ac084ca (patch) | |
tree | 82e429ac63306414aac88886b01d2a6fd234b074 /io_import_images_as_planes.py | |
parent | d4935729daa9d84a82c18144e51d4472ba98544f (diff) |
Update for removal of image.use_alpha
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r-- | io_import_images_as_planes.py | 6 |
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) |