Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2022-10-29 18:08:12 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-10-29 18:08:12 +0300
commit78fe6d7ab1952503d1eef66c18e36dc7e07147bf (patch)
tree32bee2699425d327bd5e2bc2c8c7cd6dde2f5d03
parent2c9fe719e68a81801fa490e980df1f3c09eb1db0 (diff)
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.
-rw-r--r--source/blender/blenkernel/intern/nla.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c
index 24663d6db05..326f239a95a 100644
--- a/source/blender/blenkernel/intern/nla.c
+++ b/source/blender/blenkernel/intern/nla.c
@@ -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 */