diff options
author | Wayde Moss <GuiltyGhost> | 2020-11-17 13:00:53 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-11-17 13:01:28 +0300 |
commit | 709ceddab228da3184d76187010887886cbc87ec (patch) | |
tree | 41b83ddfea4e25b5be620527852154ea2b83ed7f | |
parent | 02efc0111c1f7c913b750ca7757ba482fe610af2 (diff) |
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
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index 94bd285e238..56bd83140bf 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -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; } |