diff options
-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; |