Fix T82774: NLA Sync Length Typo Fix

When offsetting strips to the left, to make space when syncing strip
length, move the preceding NLA strips instead of the succeeding strips.

The bug seems to be from a copy/pasting typo.

Reviewed By: sybren

Differential Revision: https://developer.blender.org/D9583
This commit is contained in:
Wayde Moss 2020-11-17 11:00:53 +01:00 committed by Sybren A. Stüvel
parent 02efc0111c
commit 709ceddab2
Notes: blender-bot 2023-02-14 08:45:12 +01:00
Referenced by issue #82774, NLA: Sync Length Strip After Transition Broken
1 changed files with 1 additions and 1 deletions

View File

@ -1340,7 +1340,7 @@ static void nlastrip_fix_resize_overlaps(NlaStrip *strip)
offset = ceilf(nls->end - strip->start);
/* apply necessary offset to ensure that the strip has enough space */
for (; nls; nls = nls->next) {
for (; nls; nls = nls->prev) {
nls->start -= offset;
nls->end -= offset;
}