[Bf-blender-cvs] [709ceddab22] blender-v2.91-release: Fix T82774: NLA Sync Length Typo Fix

Wayde Moss noreply at git.blender.org
Tue Nov 17 11:11:21 CET 2020


Commit: 709ceddab228da3184d76187010887886cbc87ec
Author: Wayde Moss
Date:   Tue Nov 17 11:00:53 2020 +0100
Branches: blender-v2.91-release
https://developer.blender.org/rB709ceddab228da3184d76187010887886cbc87ec

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

===================================================================

M	source/blender/blenkernel/intern/nla.c

===================================================================

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;
         }



More information about the Bf-blender-cvs mailing list