Animation: At the boundary frame between non-muted NLA strips, evaluate the first frame of the later strip instead of the last frame of the earlier. #113487

Open
Paolo Amadini wants to merge 1 commits from pamadini/blender:nla-adjacent-strips into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 9 additions and 2 deletions

View File

@ -980,8 +980,15 @@ NlaEvalStrip *nlastrips_ctime_get_strip(ListBase *list,
}
if (in_range) {
/* this strip is active, so try to use it */
estrip = strip;
/* If we are at the last frame of the current strip and a non-muted strip starts immediately
* after, return the first frame of the next strip instead. */
if (strip->next && ctime == strip->next->start && !(strip->next->flag & NLASTRIP_FLAG_MUTED))
{
estrip = strip->next;
}
else {
estrip = strip;
}
side = NES_TIME_WITHIN;
break;
}