diff options
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r-- | io_import_images_as_planes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index 8cdfac07..72b95bda 100644 --- a/io_import_images_as_planes.py +++ b/io_import_images_as_planes.py @@ -598,7 +598,7 @@ def setup_compositing(context, plane, img_spec): axis_fcurve.is_valid = True driver.expression = "%s" % driver.expression - scene.update() + context.view_layer.update() # ----------------------------------------------------------------------------- @@ -893,7 +893,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper): # Create individual planes planes = [self.single_image_spec_to_plane(context, img_spec) for img_spec in images] - context.scene.update() + context.view_layer.update() # Align planes relative to each other if self.offset: |