Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_buttons.c
| Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | |||||
| static void graphedit_activekey_update_cb(bContext *UNUSED(C), | static void graphedit_activekey_update_cb(bContext *UNUSED(C), | ||||
| void *fcu_ptr, | void *fcu_ptr, | ||||
| void *UNUSED(bezt_ptr)) | void *UNUSED(bezt_ptr)) | ||||
| { | { | ||||
| FCurve *fcu = (FCurve *)fcu_ptr; | FCurve *fcu = (FCurve *)fcu_ptr; | ||||
| /* make sure F-Curve and its handles are still valid after this editing */ | /* make sure F-Curve and its handles are still valid after this editing */ | ||||
| sort_time_fcurve(fcu); | sort_time_fcurve(fcu); | ||||
| calchandles_fcurve(fcu); | BKE_fcurve_handles_recalc(fcu); | ||||
| } | } | ||||
| /* update callback for active keyframe properties - handle-editing wrapper */ | /* update callback for active keyframe properties - handle-editing wrapper */ | ||||
| static void graphedit_activekey_handles_cb(bContext *C, void *fcu_ptr, void *bezt_ptr) | static void graphedit_activekey_handles_cb(bContext *C, void *fcu_ptr, void *bezt_ptr) | ||||
| { | { | ||||
| BezTriple *bezt = (BezTriple *)bezt_ptr; | BezTriple *bezt = (BezTriple *)bezt_ptr; | ||||
| /* since editing the handles, make sure they're set to types which are receptive to editing | /* since editing the handles, make sure they're set to types which are receptive to editing | ||||
| ▲ Show 20 Lines • Show All 1,184 Lines • Show Last 20 Lines | |||||