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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-17 13:36:11 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-17 15:18:02 +0300
commit222969e3805359444579d7ab96d75b93c73212fe (patch)
tree6b9985a4fc81544b428ce6d03d713ca11f9498ed /blenderkit
parentb455cbf6b1074074c45cb365721b2d61a8004320 (diff)
Update for Depsgraph API changes
Reviewers: sergey Differential Revision: https://developer.blender.org/D4883
Diffstat (limited to 'blenderkit')
-rw-r--r--blenderkit/autothumb_model_bg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/blenderkit/autothumb_model_bg.py b/blenderkit/autothumb_model_bg.py
index dc34d59c..7ed0aa7d 100644
--- a/blenderkit/autothumb_model_bg.py
+++ b/blenderkit/autothumb_model_bg.py
@@ -45,7 +45,7 @@ def center_obs_for_thumbnail(obs):
parent = parent.parent
# reset parent rotation, so we see how it really snaps.
parent.rotation_euler = (0, 0, 0)
- bpy.context.scene.update()
+ bpy.context.view_layer.update()
minx, miny, minz, maxx, maxy, maxz = utils.get_bounds_worldspace(obs)
cx = (maxx - minx) / 2 + minx
@@ -87,7 +87,7 @@ if __name__ == "__main__":
main_object, allobs = append_link.append_objects(file_name=BLENDERKIT_EXPORT_FILE_INPUT,
obnames=obnames,
link=True)
- bpy.context.scene.update()
+ bpy.context.view_layer.update()
camdict = {
'GROUND': 'camera ground',
@@ -128,7 +128,7 @@ if __name__ == "__main__":
= data['thumbnail_background_lightness']
s.cycles.samples = data['thumbnail_samples']
bpy.context.view_layer.cycles.use_denoising = data['thumbnail_denoising']
- bpy.context.scene.update()
+ bpy.context.view_layer.update()
# import blender's HDR here
hdr_path = Path('datafiles/studiolights/world/interior.exr')