Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/view_layer/test_object_copy.py')
-rw-r--r--tests/python/view_layer/test_object_copy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/python/view_layer/test_object_copy.py b/tests/python/view_layer/test_object_copy.py
index eab2c73f3b3..a15b9e2c941 100644
--- a/tests/python/view_layer/test_object_copy.py
+++ b/tests/python/view_layer/test_object_copy.py
@@ -42,7 +42,7 @@ class UnitTesting(ViewLayerTesting):
layer.collections.link(subzero)
scene.view_layers.active_index = len(scene.view_layers) - 1
- bpy.context.workspace.view_layer = bpy.context.scene.view_layers['Fresh new Layer']
+ bpy.context.window.view_layer = bpy.context.scene.view_layers['Fresh new Layer']
if mode == 'DUPLICATE':
# assuming the latest layer is the active layer