From 664421e9f9327f2c6ea5967930b386c142557e39 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 4 Sep 2022 13:55:57 +0300 Subject: [PATCH] Fix exporting of resource-only scenes --- blender/io_mspgl/export.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blender/io_mspgl/export.py b/blender/io_mspgl/export.py index 238f8c4d..530c83df 100644 --- a/blender/io_mspgl/export.py +++ b/blender/io_mspgl/export.py @@ -89,6 +89,7 @@ class ProjectExporter: 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) @@ -98,10 +99,12 @@ class ProjectExporter: 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(): @@ -110,7 +113,6 @@ class ProjectExporter: if s.camera: all_objects.append(s.camera) - scene_queue = list(scenes.values()) ordered_scenes = [] while scene_queue: s = scene_queue.pop(0) -- 2.45.2