Simplified some test code in render_layer_common.py
This commit is contained in:
@@ -127,11 +127,10 @@ def query_scene(filepath, name, callbacks):
|
|||||||
with blendfile.open_blend(filepath) as blend:
|
with blendfile.open_blend(filepath) as blend:
|
||||||
scenes = [block for block in blend.blocks if block.code == b'SC']
|
scenes = [block for block in blend.blocks if block.code == b'SC']
|
||||||
for scene in scenes:
|
for scene in scenes:
|
||||||
if scene.get((b'id', b'name'))[2:] == name:
|
if scene.get((b'id', b'name'))[2:] != name:
|
||||||
output = []
|
continue
|
||||||
for callback in callbacks:
|
|
||||||
output.append(callback(scene))
|
return [callback(scene) for callback in callbacks]
|
||||||
return output
|
|
||||||
|
|
||||||
|
|
||||||
# ############################################################
|
# ############################################################
|
||||||
|
Reference in New Issue
Block a user