diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-03-15 02:45:14 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-03-15 02:47:46 +0400 |
commit | 2aff2435f016072f8cb216a13bc05340d3934d1e (patch) | |
tree | 1b630ce224910faae0fd5129032d81df537246f4 /source/blender/editors/transform/transform_ops.c | |
parent | 0dd52d1b2671c2f91d16e7faa8a3b1ae5bd46f34 (diff) |
Patch T36209: Use binary search function for evaluating F-Curves
This provides a speedup to evaluating long F-Curves in fcurve_eval_keyframes()
by using the pre-existing binarysearch_bezt_index() function (used for keyframe
insertion) to find the relevant BezTriple on the FCurve at the current evaltime.
The current code loops over all BezTriples (sometimes not even breaking from the
loop after cvalue has been evaluated).
Reviewer Notes:
- Unlike in the original patch, we use the old/existing logic instead of
checking that (exact == true). See comments in code and also on the tracker
entry for this patch for more details.
Patch By: Josh Wedlake
Diffstat (limited to 'source/blender/editors/transform/transform_ops.c')
0 files changed, 0 insertions, 0 deletions