From 80562a80306ae9abc5eaa7cd24ab70b09213a213 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 21 Jan 2019 14:35:46 +0100 Subject: Fix calls to object.transform_ apply due to API changes The parameter defaults were changed in rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4 --- 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 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': -- cgit v1.2.3