Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_evaluation_selectability_b.py
similarity index 88%
rename from tests/python/render_layer/test_evaluation_selectability_b.py
rename to tests/python/view_layer/test_evaluation_selectability_b.py
index ea05710ebcfd3b89ab6e5e1cf7544ce9800c1eaa..9cb2cd76f17b8a45ccb5b222e2831e50b8200368 100644 (file)
@@ -6,14 +6,14 @@ import unittest
 import os
 import sys
 
-from render_layer_common import *
+from view_layer_common import *
 
 
 # ############################################################
 # Testing
 # ############################################################
 
-class UnitTesting(RenderLayerTesting):
+class UnitTesting(ViewLayerTesting):
     def test_selectability(self):
         """
         See if the depsgraph evaluation is correct
@@ -24,10 +24,10 @@ class UnitTesting(RenderLayerTesting):
         workspace = bpy.context.workspace
         cube = bpy.data.objects.new('guinea pig', bpy.data.meshes.new('mesh'))
 
-        layer = scene.render_layers.new('Selectability Test')
+        layer = scene.view_layers.new('Selectability Test')
         layer.collections.unlink(layer.collections[0])
-        scene.render_layers.active = layer
-        workspace.render_layer = layer
+        scene.view_layers.active = layer
+        workspace.view_layer = layer
 
         scene_collection_mom = scene.master_collection.collections.new("Mom")
         scene_collection_kid = scene_collection_mom.collections.new("Kid")