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 :)
This commit is contained in:
2009-05-04 10:04:46 +00:00
parent 387df32933
commit 22c2827d2d
4 changed files with 19 additions and 6 deletions

View File

@@ -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");