Fix T101930: NLA Actions Stash remove doesn't work on overriden linked data.

Code adding stash track was clearing out track flags, instead of editing
them as it should have...

Note that there are a lot of other weaknesses in action stash code (like
relying on the (translated!!!!!!) name of the track to know whether it's
a stah or not).
This commit is contained in:
Bastien Montagne 2022-10-22 17:19:55 +02:00
parent 8bb211a771
commit 9f56021975
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #101930, NLA Actions Stash remove doesn't work on overriden linked data
1 changed files with 1 additions and 1 deletions

View File

@ -1918,7 +1918,7 @@ bool BKE_nla_action_stash(AnimData *adt, const bool is_liboverride)
* NOTE: this must be done *after* adding the strip to the track, or else
* the strip locking will prevent the strip from getting added
*/
nlt->flag = (NLATRACK_MUTED | NLATRACK_PROTECTED);
nlt->flag |= (NLATRACK_MUTED | NLATRACK_PROTECTED);
strip->flag &= ~(NLASTRIP_FLAG_SELECT | NLASTRIP_FLAG_ACTIVE);
/* also mark the strip for auto syncing the length, so that the strips accurately