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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-06 01:46:26 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-06 01:46:26 +0300
commit53d86458371d9d595d693c10437cfd08817acaf9 (patch)
treee0ca6291e289393700e698a524f041961aa3dee2
parent33f3f852353a12a58bd2ed7c87b01754e4f4a130 (diff)
Bugfix for infinite loop in Sample Keys function in the action editor,
with two keyframes on the same location.
-rw-r--r--source/blender/src/editaction.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c
index 1646e49c489..7da84b81df3 100644
--- a/source/blender/src/editaction.c
+++ b/source/blender/src/editaction.c
@@ -1634,12 +1634,12 @@ void sample_action_keys (void)
/* free temp cache */
MEM_freeN(value_cache);
+
+ /* as we added keyframes, we need to compensate so that bezt is at the right place */
+ bezt = icu->bezt + i + range - 1;
+ i += (range - 1);
}
- /* as we added keyframes, we need to compensate so that bezt is at the right place */
- bezt = icu->bezt + i + range - 1;
- i += (range - 1);
-
/* bezt was selected, so it now marks the start of a whole new chain to search */
start= bezt;
end= NULL;