Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_anim.c
| Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | if (autokeyframe_cfra_can_key(scene, id)) { | ||||
| insert_keyframe(reports, id, action, ((fcu->grp) ? (fcu->grp->name) : (NULL)), fcu->rna_path, fcu->array_index, cfra, flag); | insert_keyframe(reports, id, action, ((fcu->grp) ? (fcu->grp->name) : (NULL)), fcu->rna_path, fcu->array_index, cfra, flag); | ||||
| WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void ui_but_anim_insert_keyframe(bContext *C) | void ui_but_anim_insert_keyframe(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_keyframe_insert_button", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_keyframe_insert_button", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_delete_keyframe(bContext *C) | void ui_but_anim_delete_keyframe(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_keyframe_delete_button", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_keyframe_delete_button", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_clear_keyframe(bContext *C) | void ui_but_anim_clear_keyframe(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_keyframe_clear_button", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_keyframe_clear_button", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_add_driver(bContext *C) | void ui_but_anim_add_driver(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_driver_button_add", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_driver_button_add", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_remove_driver(bContext *C) | void ui_but_anim_remove_driver(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_driver_button_remove", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_driver_button_remove", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_copy_driver(bContext *C) | void ui_but_anim_copy_driver(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_copy_driver_button", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_copy_driver_button", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_paste_driver(bContext *C) | void ui_but_anim_paste_driver(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_paste_driver_button", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_paste_driver_button", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_add_keyingset(bContext *C) | void ui_but_anim_add_keyingset(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_keyingset_button_add", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_keyingset_button_add", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||
| void ui_but_anim_remove_keyingset(bContext *C) | void ui_but_anim_remove_keyingset(bContext *C) | ||||
| { | { | ||||
| /* this operator calls uiContextActiveProperty */ | /* this operator calls UI_context_active_but_prop_get */ | ||||
| WM_operator_name_call(C, "ANIM_OT_keyingset_button_remove", WM_OP_INVOKE_DEFAULT, NULL); | WM_operator_name_call(C, "ANIM_OT_keyingset_button_remove", WM_OP_INVOKE_DEFAULT, NULL); | ||||
| } | } | ||||