Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-03-18 22:45:07 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-03-18 22:47:32 +0300
commit1a5c86c9da51d957632ab8b7f4ad624f8aa86a1b (patch)
tree7be2fd117324ed465c463f77db26a0907aea510b /io_import_images_as_planes.py
parent742fa2002ee416cddcc81e90ca8dbaa5ab520428 (diff)
Fix T62353: Cannot select object when calling Import Images as Planes
from menu while in Draw Mode
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py2
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)