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:
authorJulien Duroure <julien.duroure@gmail.com>2020-03-17 10:01:53 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-03-17 10:01:53 +0300
commitf3683cf7bf74606d053cfda019c804185af74a3c (patch)
tree225e60dee4cbc1ac568ad3a271314f7fd0250299 /io_scene_gltf2
parente5bde5ec2e6880729896937b65e9097246a558b6 (diff)
glTF exporter: fix bad action name if NLA track names are not initial names
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-xio_scene_gltf2/__init__.py2
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather.py2
2 files changed, 2 insertions, 2 deletions
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