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

@@ -747,6 +747,7 @@ class Clay:
layer = self._scene.render_layers.new('Evaluation Test')
layer.collections.unlink(layer.collections[0])
self._scene.render_layers.active = layer
bpy.context.workspace.render_layer = layer
# remove all other layers