diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather.py index 217930e1..6a5a9947 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather.py @@ -32,7 +32,8 @@ def gather_gltf2(export_settings): animations = [] # unfortunately animations in gltf2 are just as 'root' as scenes. for blender_scene in bpy.data.scenes: scenes.append(__gather_scene(blender_scene, export_settings)) - animations += __gather_animations(blender_scene, export_settings) + if export_settings[gltf2_blender_export_keys.ANIMATIONS]: + animations += __gather_animations(blender_scene, export_settings) return scenes, animations |