Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyframes_edit.c
| Context not available. | |||||
| ked->curflags = 0; | ked->curflags = 0; | ||||
| } | } | ||||
| /* Only operate on this BezTriple if it fullfills the criteria of the validation func */ | /* Only operate on this BezTriple if it fulfills the criteria of the validation func */ | ||||
| if ((ok = key_ok(ked, bezt))) { | if ((ok = key_ok(ked, bezt))) { | ||||
| if (ked) ked->curflags = ok; | if (ked) ked->curflags = ok; | ||||
| Context not available. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| /* snaps the keyframe to the neares second */ | /* snaps the keyframe to the nearest second */ | ||||
| static short snap_bezier_nearestsec(KeyframeEditData *ked, BezTriple *bezt) | static short snap_bezier_nearestsec(KeyframeEditData *ked, BezTriple *bezt) | ||||
| { | { | ||||
| const Scene *scene = ked->scene; | const Scene *scene = ked->scene; | ||||
| Context not available. | |||||
| static short mirror_bezier_yaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt) | static short mirror_bezier_yaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt) | ||||
| { | { | ||||
| if (bezt->f2 & SELECT) { | if (bezt->f2 & SELECT) { | ||||
| /* Yes, names are inverted, we are mirroring accross y axis, hence along x axis... */ | /* Yes, names are inverted, we are mirroring across y axis, hence along x axis... */ | ||||
| mirror_bezier_xaxis_ex(bezt, 0.0f); | mirror_bezier_xaxis_ex(bezt, 0.0f); | ||||
| } | } | ||||
| Context not available. | |||||
| static short mirror_bezier_xaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt) | static short mirror_bezier_xaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt) | ||||
| { | { | ||||
| if (bezt->f2 & SELECT) { | if (bezt->f2 & SELECT) { | ||||
| /* Yes, names are inverted, we are mirroring accross x axis, hence along y axis... */ | /* Yes, names are inverted, we are mirroring across x axis, hence along y axis... */ | ||||
| mirror_bezier_yaxis_ex(bezt, 0.0f); | mirror_bezier_yaxis_ex(bezt, 0.0f); | ||||
| } | } | ||||
| Context not available. | |||||
| static short mirror_bezier_time(KeyframeEditData *ked, BezTriple *bezt) | static short mirror_bezier_time(KeyframeEditData *ked, BezTriple *bezt) | ||||
| { | { | ||||
| /* value to mirror over is strored in f1 */ | /* value to mirror over is stored in f1 */ | ||||
| if (bezt->f2 & SELECT) { | if (bezt->f2 & SELECT) { | ||||
| mirror_bezier_xaxis_ex(bezt, ked->f1); | mirror_bezier_xaxis_ex(bezt, ked->f1); | ||||
| } | } | ||||
| Context not available. | |||||