Layers: unittest update after workspace > engine changes
All tests working again now. Remember to update the svn lib/tests/layers folder.
This commit is contained in:
parent
941484ff81
commit
3a72f02d80
|
@ -50,12 +50,12 @@ def get_layer_collection(layer_collection):
|
||||||
return name, data
|
return name, data
|
||||||
|
|
||||||
|
|
||||||
def get_layer(layer):
|
def get_layer(scene, layer):
|
||||||
data = {}
|
data = {}
|
||||||
name = layer.get(b'name')
|
name = layer.get(b'name')
|
||||||
|
|
||||||
data['name'] = 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')
|
active_base = layer.get_pointer(b'basact')
|
||||||
if active_base:
|
if active_base:
|
||||||
|
@ -83,7 +83,7 @@ def get_layers(scene):
|
||||||
"""Return all the render layers and their data"""
|
"""Return all the render layers and their data"""
|
||||||
layers = {}
|
layers = {}
|
||||||
for layer in linkdata_iter(scene, b'render_layers'):
|
for layer in linkdata_iter(scene, b'render_layers'):
|
||||||
name, data = get_layer(layer)
|
name, data = get_layer(scene, layer)
|
||||||
layers[name] = data
|
layers[name] = data
|
||||||
return layers
|
return layers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue