diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-10-31 17:30:19 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-10-31 17:45:41 +0300 |
commit | 3a72f02d800006d77a6f3ba9597f059c77ce6553 (patch) | |
tree | 61061ca0e9a8c6453a2bd131f657c829ee68d852 | |
parent | 941484ff81744ad2dca1741f3e9c4b4c18664a82 (diff) |
Layers: unittest update after workspace > engine changes
All tests working again now.
Remember to update the svn lib/tests/layers folder.
-rw-r--r-- | tests/python/render_layer/render_layer_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/render_layer/render_layer_common.py b/tests/python/render_layer/render_layer_common.py index adc32f062ea..6c4942461a9 100644 --- a/tests/python/render_layer/render_layer_common.py +++ b/tests/python/render_layer/render_layer_common.py @@ -50,12 +50,12 @@ def get_layer_collection(layer_collection): return name, data -def get_layer(layer): +def get_layer(scene, layer): data = {} name = layer.get(b'name') data['name'] = name - data['engine'] = layer.get(b'engine') + data['engine'] = scene.get((b'view_render', b'engine_id')) active_base = layer.get_pointer(b'basact') if active_base: @@ -83,7 +83,7 @@ def get_layers(scene): """Return all the render layers and their data""" layers = {} for layer in linkdata_iter(scene, b'render_layers'): - name, data = get_layer(layer) + name, data = get_layer(scene, layer) layers[name] = data return layers |