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:
authorJacques Lucke <mail@jlucke.com>2019-01-21 16:35:46 +0300
committerJacques Lucke <mail@jlucke.com>2019-01-21 16:35:46 +0300
commit80562a80306ae9abc5eaa7cd24ab70b09213a213 (patch)
tree53155ba2509554d263d7e902e433fd91e1ea64f0 /io_import_images_as_planes.py
parent73f88be5067be19aa2c1af75ee9566d41f69a5c0 (diff)
Fix calls to object.transform_ apply due to API changes
The parameter defaults were changed in rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4
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 5cc15311..fb8cbc1e 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -1046,7 +1046,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
bpy.ops.object.mode_set(mode='OBJECT')
plane.dimensions = width, height, 0.0
plane.data.name = plane.name = name
- bpy.ops.object.transform_apply(scale=True)
+ bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
# If sizing for camera, also insert into the camera's field of view
if self.size_mode == 'CAMERA':