From 76dd3db3041e7ab60b79f4c4b9aadd344d66a4c0 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 16 Apr 2014 03:08:01 +1200 Subject: Move binary-search threshold used for FCurves to BKE_fcurve.h header Since this is now pretty much the de-facto "minimum distance between keyframes", we might as well expose this in this header so that other places which need similar thresholds can perform similar checks (needed for my next commit) --- source/blender/blenkernel/BKE_fcurve.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_fcurve.h') diff --git a/source/blender/blenkernel/BKE_fcurve.h b/source/blender/blenkernel/BKE_fcurve.h index 046bb8e0e8d..0e86be9b97c 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -197,7 +197,10 @@ int BKE_fcm_envelope_find_index(struct FCM_EnvelopeData *array, float frame, int /* ************** F-Curves API ******************** */ -/* -------- Data Managemnt -------- */ +/* threshold for binary-searching keyframes - threshold here should be good enough for now, but should become userpref */ +#define BEZT_BINARYSEARCH_THRESH 0.01f /* was 0.00001, but giving errors */ + +/* -------- Data Management -------- */ void free_fcurve(struct FCurve *fcu); struct FCurve *copy_fcurve(struct FCurve *fcu); -- cgit v1.2.3