glTF exporter: fix bad action name if NLA track names are not initial names
This commit is contained in:
parent
e5bde5ec2e
commit
f3683cf7bf
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue