Unittests: Make sure layer tests pass with or without workspace

This commit is contained in:
Dalai Felinto
2017-07-17 12:14:02 +02:00
parent 36977a962b
commit a258c5d325
15 changed files with 18 additions and 0 deletions

View File

@@ -19,6 +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)