task.set_slices(len(ctx.context.blend_data.scenes))
scenes = {}
+ scene_queue = []
sequences = []
for s in ctx.context.blend_data.scenes:
subtask = task.next_slice(s)
if s.export_disposition=='SEQUENCE':
scene = create_scene_chain(s, scenes)
sequences.append(scene)
+ scene_queue.append(scene)
elif s.export_disposition!='IGNORE' and s.name not in scenes:
scene = create_scene(s)
+ scenes[scene.name] = scene
if s.export_disposition=='SCENE':
- scenes[scene.name] = scene
+ scene_queue.append(scene)
all_objects = []
for s in scenes.values():
if s.camera:
all_objects.append(s.camera)
- scene_queue = list(scenes.values())
ordered_scenes = []
while scene_queue:
s = scene_queue.pop(0)