From 65965a892fd116267ed94d1c8b59c99589671856 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Oct 2020 16:36:31 +1100 Subject: Cleanup: use BKE_fcurve_ prefix for keyframing bezier functions - BKE_bezt_subdivide_handles -> BKE_fcurve_bezt_subdivide_handles - binarysearch_bezt_index -> BKE_fcurve_bezt_binarysearch_index These functions are specific to F-Curves and don't make sense for other uses of BezTriple (curve-object data for e.g.) Also: - Move detailed doxygen comment above code, following code-style. - Mark bezt_add_to_cfra_elem unused. --- source/blender/editors/render/render_opengl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/render') diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c index ed20d2895fc..8d410e36ca6 100644 --- a/source/blender/editors/render/render_opengl.c +++ b/source/blender/editors/render/render_opengl.c @@ -546,7 +546,8 @@ static void gather_frames_to_render_for_adt(const OGLRender *oglrender, const An } bool found = false; /* Not interesting, we just want a starting point for the for-loop.*/ - int key_index = binarysearch_bezt_index(fcu->bezt, frame_start, fcu->totvert, &found); + int key_index = BKE_fcurve_bezt_binarysearch_index( + fcu->bezt, frame_start, fcu->totvert, &found); for (; key_index < fcu->totvert; key_index++) { BezTriple *bezt = &fcu->bezt[key_index]; /* The frame range to render uses integer frame numbers, and the frame -- cgit v1.2.3