Fix failing render-layer tests after workpsace commit

This commit is contained in:
Julian Eisel
2017-06-09 19:25:06 +02:00
parent ebb2c1511b
commit da30509725
14 changed files with 25 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ class UnitTesting(RenderLayerTesting):
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']
master_collection = bpy.context.scene_collection
self.do_object_link(master_collection)