diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-06 01:46:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-06 01:46:26 +0300 |
commit | 53d86458371d9d595d693c10437cfd08817acaf9 (patch) | |
tree | e0ca6291e289393700e698a524f041961aa3dee2 /source/blender | |
parent | 33f3f852353a12a58bd2ed7c87b01754e4f4a130 (diff) |
Bugfix for infinite loop in Sample Keys function in the action editor,
with two keyframes on the same location.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/editaction.c | 8 |
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; |