From c9d2186561a86b050c94c52925c2f7353448961b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 14 Nov 2009 14:58:19 +0000 Subject: - sequencer speed effect back using fcurves, still needs manual reloading to refresh. - added a function id_data_find_fcurve() to get the fcurve without RNA vars. Aligorith: this could be made to use a path rather then a property name. --- source/blender/blenkernel/BKE_fcurve.h | 4 ++++ 1 file changed, 4 insertions(+) (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 6e273c81e39..24d5be524d7 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -34,6 +34,7 @@ struct ChannelDriver; struct DriverTarget; struct BezTriple; +struct StructRNA; #include "DNA_curve_types.h" @@ -155,6 +156,9 @@ void copy_fcurves(ListBase *dst, ListBase *src); /* find matching F-Curve in the given list of F-Curves */ struct FCurve *list_find_fcurve(ListBase *list, const char rna_path[], const int array_index); +/* high level function to get an fcurve from C without having the rna */ +struct FCurve *id_data_find_fcurve(ID* id, void *data, struct StructRNA *type, char *prop_name, int index); + /* Binary search algorithm for finding where to 'insert' BezTriple with given frame number. * Returns the index to insert at (data already at that index will be offset if replace is 0) */ -- cgit v1.2.3