diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-12-01 21:08:45 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-12-01 21:08:52 +0300 |
commit | aa0c9867b27cca4cff7d7083cda345928160044c (patch) | |
tree | f250fbf74d31c056c4546e382a4bd8c4be9bb270 /tests/python/view_layer/test_evaluation_visibility_d.py | |
parent | e9cf3fae8e2b5c419bdafcbe312483ce0c38552e (diff) |
unittests: Update (fix) unittests after workspace API change
Tests were broken since e8c15e0ed15f8369d.
We now get view_layer from window, not workspace, since the same workspace can
have a different view_layer depending on the window scene.
Diffstat (limited to 'tests/python/view_layer/test_evaluation_visibility_d.py')
-rw-r--r-- | tests/python/view_layer/test_evaluation_visibility_d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/python/view_layer/test_evaluation_visibility_d.py b/tests/python/view_layer/test_evaluation_visibility_d.py index ed5d452e4ca..e08ab4d571e 100644 --- a/tests/python/view_layer/test_evaluation_visibility_d.py +++ b/tests/python/view_layer/test_evaluation_visibility_d.py @@ -21,13 +21,13 @@ class UnitTesting(ViewLayerTesting): import bpy scene = bpy.context.scene - workspace = bpy.context.workspace + window = bpy.context.window cube = bpy.data.objects.new('guinea pig', bpy.data.meshes.new('mesh')) layer = scene.view_layers.new('Visibility Test') layer.collections.unlink(layer.collections[0]) scene.view_layers.active = layer - workspace.view_layer = layer + window.view_layer = layer scene_collection_mom = scene.master_collection.collections.new("Mom") scene_collection_kid = scene_collection_mom.collections.new("Kid") |