Fix: "Tweak user" red-alert flag was not getting set on strips on active track

The "tweak user" flag used to flag strips using the same action as the active strip
was not getting set on other strips that live on the same track as the active one.
Strips with this flag set are shown with a red colour to indicate that editing the
action may have the unintended consequence of modifying another strip.
This commit is contained in:
Joshua Leung 2015-10-08 23:55:24 +13:00 committed by Sergey Sharybin
parent 85f5c1a362
commit 323851fa71
1 changed files with 7 additions and 0 deletions

View File

@ -1791,6 +1791,13 @@ bool BKE_nla_tweakmode_enter(AnimData *adt)
}
}
/* tag all other strips in active track that uses the same action as the active strip */
for (strip = activeTrack->strips.first; strip; strip = strip->next) {
if ((strip->act == activeStrip->act) && (strip != activeStrip))
strip->flag |= NLASTRIP_FLAG_TWEAKUSER;
else
strip->flag &= ~NLASTRIP_FLAG_TWEAKUSER;
}
/* go over all the tracks after AND INCLUDING the active one, tagging them as being disabled
* - the active track needs to also be tagged, otherwise, it'll overlap with the tweaks going on