Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_object_link_b.py
similarity index 77%
rename from tests/python/render_layer/test_object_link_b.py
rename to tests/python/view_layer/test_object_link_b.py
index b18eb844fc43ef13a4701b671195b687ca995721..3a7f94380714469f0956adcaa8e355bbd19e7066 100644 (file)
@@ -6,21 +6,21 @@ 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_object_link_context(self):
         """
         See if we can link objects via bpy.context.scene_collection
         """
         import bpy
-        bpy.context.scene.render_layers.active_index = len(bpy.context.scene.render_layers) - 1
-        bpy.context.workspace.render_layer = bpy.context.scene.render_layers['Viewport']
+        bpy.context.scene.view_layers.active_index = len(bpy.context.scene.view_layers) - 1
+        bpy.context.workspace.view_layer = bpy.context.scene.view_layers['Viewport']
         master_collection = bpy.context.scene_collection
         self.do_object_link(master_collection)