Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayde Moss <GuiltyGhost>2020-11-17 13:00:53 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-11-17 13:01:28 +0300
commit709ceddab228da3184d76187010887886cbc87ec (patch)
tree41b83ddfea4e25b5be620527852154ea2b83ed7f
parent02efc0111c1f7c913b750ca7757ba482fe610af2 (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.c2
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;
}