Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_channels_defines.c
| Show First 20 Lines • Show All 4,334 Lines • ▼ Show 20 Lines | |||||
| /* callback for widget sliders - insert keyframes */ | /* callback for widget sliders - insert keyframes */ | ||||
| static void achannel_setting_slider_cb(bContext *C, void *id_poin, void *fcu_poin) | static void achannel_setting_slider_cb(bContext *C, void *id_poin, void *fcu_poin) | ||||
| { | { | ||||
| ID *id = (ID *)id_poin; | ID *id = (ID *)id_poin; | ||||
| AnimData *adt = BKE_animdata_from_id(id); | AnimData *adt = BKE_animdata_from_id(id); | ||||
| FCurve *fcu = (FCurve *)fcu_poin; | FCurve *fcu = (FCurve *)fcu_poin; | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| ReportList *reports = CTX_wm_reports(C); | ReportList *reports = CTX_wm_reports(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| ListBase nla_cache = {NULL, NULL}; | ListBase nla_cache = {NULL, NULL}; | ||||
| PointerRNA id_ptr, ptr; | PointerRNA id_ptr, ptr; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| short flag = 0; | short flag = 0; | ||||
| bool done = false; | bool done = false; | ||||
| Show All 38 Lines | |||||
| /* callback for shapekey widget sliders - insert keyframes */ | /* callback for shapekey widget sliders - insert keyframes */ | ||||
| static void achannel_setting_slider_shapekey_cb(bContext *C, void *key_poin, void *kb_poin) | static void achannel_setting_slider_shapekey_cb(bContext *C, void *key_poin, void *kb_poin) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Key *key = (Key *)key_poin; | Key *key = (Key *)key_poin; | ||||
| KeyBlock *kb = (KeyBlock *)kb_poin; | KeyBlock *kb = (KeyBlock *)kb_poin; | ||||
| char *rna_path = BKE_keyblock_curval_rnapath_get(key, kb); | char *rna_path = BKE_keyblock_curval_rnapath_get(key, kb); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| ReportList *reports = CTX_wm_reports(C); | ReportList *reports = CTX_wm_reports(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| ListBase nla_cache = {NULL, NULL}; | ListBase nla_cache = {NULL, NULL}; | ||||
| PointerRNA id_ptr, ptr; | PointerRNA id_ptr, ptr; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| short flag = 0; | short flag = 0; | ||||
| bool done = false; | bool done = false; | ||||
| ▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| /* ID *id = (ID *)id_poin; */ | /* ID *id = (ID *)id_poin; */ | ||||
| FCurve *fcu = (FCurve *)fcu_poin; | FCurve *fcu = (FCurve *)fcu_poin; | ||||
| PointerRNA ptr; | PointerRNA ptr; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| int index; | int index; | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| ReportList *reports = CTX_wm_reports(C); | ReportList *reports = CTX_wm_reports(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| short flag = 0; | short flag = 0; | ||||
| bool done = false; | bool done = false; | ||||
| float cfra; | float cfra; | ||||
| /* get current frame - *no* NLA mapping should be done */ | /* get current frame - *no* NLA mapping should be done */ | ||||
| ▲ Show 20 Lines • Show All 634 Lines • Show Last 20 Lines | |||||