From 1a5c86c9da51d957632ab8b7f4ad624f8aa86a1b Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Mon, 18 Mar 2019 20:45:07 +0100 Subject: Fix T62353: Cannot select object when calling Import Images as Planes from menu while in Draw Mode --- io_import_images_as_planes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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) -- cgit v1.2.3