Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_evaluation_visibility_d.py
similarity index 87%
rename from tests/python/render_layer/test_evaluation_visibility_d.py
rename to tests/python/view_layer/test_evaluation_visibility_d.py
index e4f0957bd269692b42e75dfc5807b0806824c0f3..ed5d452e4ca9cc67f7a760a8044f003d71633e1a 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_visibility(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('Visibility Test')
+        layer = scene.view_layers.new('Visibility 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")