[Bf-extensions-cvs] [f3683cf7] master: glTF exporter: fix bad action name if NLA track names are not initial names
Julien Duroure
noreply at git.blender.org
Tue Mar 17 08:02:44 CET 2020
Commit: f3683cf7bf74606d053cfda019c804185af74a3c
Author: Julien Duroure
Date: Tue Mar 17 08:01:53 2020 +0100
Branches: master
https://developer.blender.org/rBAf3683cf7bf74606d053cfda019c804185af74a3c
glTF exporter: fix bad action name if NLA track names are not initial names
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 9dd4f9b8..62639ea9 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, 44),
+ "version": (1, 2, 45),
'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 02c93b10..f08a379b 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather.py
@@ -87,7 +87,7 @@ def __gather_animations(blender_scene, export_settings):
# 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
+ animations[merged_tracks[merged_anim_track][0]].name = merged_anim_track
continue
More information about the Bf-extensions-cvs
mailing list