diff options
Diffstat (limited to 'tests/python/view_layer/test_background_set.py')
-rw-r--r-- | tests/python/view_layer/test_background_set.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/view_layer/test_background_set.py b/tests/python/view_layer/test_background_set.py index a26229d53a9..f522f425920 100644 --- a/tests/python/view_layer/test_background_set.py +++ b/tests/python/view_layer/test_background_set.py @@ -25,7 +25,7 @@ class UnitTesting(ViewLayerTesting): bpy.context.window.scene = main_scene # Update depsgraph. - main_scene.update() + bpy.context.view_layer.update() # Safety check, there should be no objects in thew newly created scene. self.assertEqual(0, len(bpy.context.depsgraph.objects)) @@ -35,7 +35,7 @@ class UnitTesting(ViewLayerTesting): background_scene.objects[0].parent = background_scene.objects[1] # Update depsgraph. - main_scene.update() + bpy.context.view_layer.update() # Test if objects were properly added to depsgraph. self.assertEqual(3, len(bpy.context.depsgraph.objects)) @@ -50,7 +50,7 @@ class UnitTesting(ViewLayerTesting): main_scene.background_set = None # Update depsgraph. - main_scene.update() + bpy.context.view_layer.update() self.assertEqual(0, len(bpy.context.depsgraph.objects)) |