Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-05-04 14:04:46 +0400
committerJoshua Leung <aligorith@gmail.com>2009-05-04 14:04:46 +0400
commit22c2827d2de6cccf272cadeaa7632fc27f229a32 (patch)
tree915619bdf14144ff6560bd82d88b7415f163fc24 /source/blender/makesrna
parent387df32933996850145487ddba07a3bd3c25d627 (diff)
Cycles F-Curve Modifier: 'Mirrored' Option
Using this cycling mode option, the keyframe range will be repeated in reverse order every second repeat. Thanks for the idea mfoxdogg :)
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_fcurve.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c
index 5b8e05f840b..6c58c521535 100644
--- a/source/blender/makesrna/intern/rna_fcurve.c
+++ b/source/blender/makesrna/intern/rna_fcurve.c
@@ -325,9 +325,10 @@ static void rna_def_fmodifier_cycles(BlenderRNA *brna)
PropertyRNA *prop;
static EnumPropertyItem prop_type_items[] = {
- {0, "NONE", "No Cycles", ""},
- {1, "REPEAT", "Repeat Motion", ""},
- {1, "REPEAT_OFFSET", "Repeat with Offset", ""},
+ {FCM_EXTRAPOLATE_NONE, "NONE", "No Cycles", "Don't do anything."},
+ {FCM_EXTRAPOLATE_CYCLIC, "REPEAT", "Repeat Motion", "Repeat keyframe range as-is."},
+ {FCM_EXTRAPOLATE_CYCLIC_OFFSET, "REPEAT_OFFSET", "Repeat with Offset", "Repeat keyframe range, but with offset based on gradient between values"},
+ {FCM_EXTRAPOLATE_MIRROR, "MIRROR", "Repeat Mirrored", "Alternate between forward and reverse playback of keyframe range"},
{0, NULL, NULL, NULL}};
srna= RNA_def_struct(brna, "FModifierCycles", "FModifier");