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/blenkernel/intern | |
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/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/fcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c index b50e563775e..4648d70b62b 100644 --- a/source/blender/blenkernel/intern/fcurve.c +++ b/source/blender/blenkernel/intern/fcurve.c @@ -820,7 +820,7 @@ void fcurve_store_samples(FCurve *fcu, void *data, int start, int end, FcuSample printf("Error: No F-Curve with F-Curve Modifiers to Bake\n"); return; } - if (start >= end) { + if (start > end) { printf("Error: Frame range for Sampled F-Curve creation is inappropriate\n"); return; } |