diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-03-18 22:45:07 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-03-18 22:47:32 +0300 |
commit | 1a5c86c9da51d957632ab8b7f4ad624f8aa86a1b (patch) | |
tree | 7be2fd117324ed465c463f77db26a0907aea510b | |
parent | 742fa2002ee416cddcc81e90ca8dbaa5ab520428 (diff) |
Fix T62353: Cannot select object when calling Import Images as Planes
from menu while in Draw Mode
-rw-r--r-- | io_import_images_as_planes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index fdff3603..8cdfac07 100644 --- a/io_import_images_as_planes.py +++ b/io_import_images_as_planes.py @@ -871,7 +871,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper): # this won't work in edit mode editmode = context.preferences.edit.use_enter_edit_mode context.preferences.edit.use_enter_edit_mode = False - if context.active_object and context.active_object.mode == 'EDIT': + if context.active_object and context.active_object.mode != 'OBJECT': bpy.ops.object.mode_set(mode='OBJECT') self.import_images(context) |