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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-19 03:56:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 03:56:05 +0300
commit6a1ce20043860e4f836294d46a86b5fcf7fbf1a8 (patch)
treed99f11f29954067c147cde7b99e97ddb19ef5e00 /io_import_images_as_planes.py
parent156c5ea6a45d0549d8422e3ea295972dec7766c3 (diff)
parent9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (diff)
Merge branch 'master' into blender2.8
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 2b57c676..88cee32a 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -1042,7 +1042,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
bpy.ops.mesh.primitive_plane_add('INVOKE_REGION_WIN')
plane = context.active_object
# Why does mesh.primitive_plane_add leave the object in edit mode???
- if plane.mode is not 'OBJECT':
+ if plane.mode != 'OBJECT':
bpy.ops.object.mode_set(mode='OBJECT')
plane.dimensions = width, height, 0.0
plane.data.name = plane.name = name