NLA: Push down Action names the Track after the Action

When pushing down an Action to a new NLA track, the track is now named
after the Action.
This commit is contained in:
Sybren A. Stüvel 2022-10-29 17:08:12 +02:00
parent 2c9fe719e6
commit 78fe6d7ab1
1 changed files with 1 additions and 0 deletions

View File

@ -464,6 +464,7 @@ NlaStrip *BKE_nlastack_add_strip(AnimData *adt, bAction *act, const bool is_libo
*/
nlt = BKE_nlatrack_add(adt, NULL, is_liboverride);
BKE_nlatrack_add_strip(nlt, strip, is_liboverride);
BLI_strncpy(nlt->name, act->id.name + 2, sizeof(nlt->name));
}
/* automatically name it too */