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

@@ -42,6 +42,7 @@ class UnitTesting(RenderLayerTesting):
layer.collections.link(subzero)
scene.render_layers.active_index = len(scene.render_layers) - 1
bpy.context.workspace.render_layer = bpy.context.scene.render_layers['Fresh new Layer']
if mode == 'DUPLICATE':
# assuming the latest layer is the active layer