From 33e8db94b1e7df2bd7fdbf15b96368c8d16d3b4e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 4 Jun 2019 14:36:53 +0200 Subject: Fix (unreported) missing updates in scripts/docs after `scene.update()` removal. This should really have been done together with API changes, simple usage of grep does the trick to catch most places needing updates. --- release/scripts/templates_py/background_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/templates_py/background_job.py') diff --git a/release/scripts/templates_py/background_job.py b/release/scripts/templates_py/background_job.py index c28c7275fce..5410a7d649f 100644 --- a/release/scripts/templates_py/background_job.py +++ b/release/scripts/templates_py/background_job.py @@ -48,7 +48,7 @@ def example_function(text, save_path, render_path): scene.collection.objects.link(light_ob) light_ob.location = 2.0, 2.0, 5.0 - scene.update() + bpy.context.view_layer.update() if save_path: bpy.ops.wm.save_as_mainfile(filepath=save_path) -- cgit v1.2.3