Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_export.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_export.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_export.py b/io_scene_gltf2/blender/exp/gltf2_blender_export.py
index a41759a3..8c39cfdb 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_export.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_export.py
@@ -66,14 +66,14 @@ def __get_copyright(export_settings):
def __gather_gltf(exporter, export_settings):
- scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
+ active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
if export_settings['gltf_draco_mesh_compression']:
gltf2_io_draco_compression_extension.compress_scene_primitives(scenes, export_settings)
exporter.add_draco_extension()
- for scene in scenes:
- exporter.add_scene(scene)
+ for idx, scene in enumerate(scenes):
+ exporter.add_scene(scene, idx==active_scene_idx)
for animation in animations:
exporter.add_animation(animation)