diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-05-17 13:36:11 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-05-17 15:18:02 +0300 |
commit | 222969e3805359444579d7ab96d75b93c73212fe (patch) | |
tree | 6b9985a4fc81544b428ce6d03d713ca11f9498ed /io_import_images_as_planes.py | |
parent | b455cbf6b1074074c45cb365721b2d61a8004320 (diff) |
Update for Depsgraph API changes
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4883
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: |