diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-03-04 23:27:27 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-03-04 23:27:27 +0300 |
commit | f4e12a20f5d0362091ed0f895b8ec902e65c82a5 (patch) | |
tree | 2145e5cc82c9da96dc71a67c66dafb1b1362de65 /io_scene_gltf2 | |
parent | 120d313b842e0e5285ad815434d9704f3079d1a0 (diff) |
glTF exporter: fix animation name at export, when only 1 animation in track
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 4c489fda..24ba131b 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -15,7 +15,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (1, 2, 34), + "version": (1, 2, 35), 'blender': (2, 82, 7), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather.py index 113fdcc6..02c93b10 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather.py @@ -84,6 +84,11 @@ def __gather_animations(blender_scene, export_settings): to_delete_idx = [] for merged_anim_track in merged_tracks.keys(): if len(merged_tracks[merged_anim_track]) < 2: + + # There is only 1 animation in the track + # If name of the track is not a default name, use this name for action + animations[0].name = merged_anim_track + continue base_animation_idx = None |