Skip to content
Snippets Groups Projects
Commit 1a5c86c9 authored by Philipp Oeser's avatar Philipp Oeser
Browse files

Fix T62353: Cannot select object when calling Import Images as Planes

from menu while in Draw Mode
parent 742fa200
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment