diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-16 18:12:03 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-16 19:26:28 +0300 |
commit | da8f16e288d667e8b8c487b3192f962d71dec3aa (patch) | |
tree | 338514da74cc089078545601bde229eea394b8f5 /source/blender/makesrna/intern/rna_fcurve.c | |
parent | 913e2bae19f8fbbfbc85eb11521fe77c1e298f64 (diff) |
FCurve RNA API: add funcs to convert to samples/to keyframes.
So far, we had an operator to 'bake' keyframe curves into samples, but no
way to make the fcurve editable again (i.e. to convert it back into a keyframes one).
Needed to fix mocap addon (see T43259).
Also, fixed a glitch in `fcurve_store_samples()`, since given end frame is included in range,
it is valid to give same start and end frame (in case you want a single point in samples,
not much practical cases, but...).
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index 3b9078153f3..6c893255601 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -1948,6 +1948,10 @@ static void rna_def_fcurve(BlenderRNA *brna) parm = RNA_def_pointer(func, "data", "AnyType", "Data", "Data containing the property controlled by given FCurve"); RNA_def_property_flag(parm, PROP_REQUIRED | PROP_RNAPTR | PROP_NEVER_NULL); + + + /* Functions */ + RNA_api_fcurves(srna); } /* *********************** */ |