Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyingsets.c
| Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | static int add_keyingset_button_exec(bContext *C, wmOperator *op) | ||||
| return (changed) ? OPERATOR_FINISHED : OPERATOR_CANCELLED; | return (changed) ? OPERATOR_FINISHED : OPERATOR_CANCELLED; | ||||
| } | } | ||||
| void ANIM_OT_keyingset_button_add(wmOperatorType *ot) | void ANIM_OT_keyingset_button_add(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Add to Keying Set"; | ot->name = "Add to Keying Set"; | ||||
| ot->idname = "ANIM_OT_keyingset_button_add"; | ot->idname = "ANIM_OT_keyingset_button_add"; | ||||
| ot->description = "Add current UI-active property to current keying set"; | ot->description = "Add current UI-active property to current Keying Set"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->exec = add_keyingset_button_exec; | ot->exec = add_keyingset_button_exec; | ||||
| // op->poll = ??? | // op->poll = ??? | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | static int remove_keyingset_button_exec(bContext *C, wmOperator *op) | ||||
| return (changed) ? OPERATOR_FINISHED : OPERATOR_CANCELLED; | return (changed) ? OPERATOR_FINISHED : OPERATOR_CANCELLED; | ||||
| } | } | ||||
| void ANIM_OT_keyingset_button_remove(wmOperatorType *ot) | void ANIM_OT_keyingset_button_remove(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Remove from Keying Set"; | ot->name = "Remove from Keying Set"; | ||||
| ot->idname = "ANIM_OT_keyingset_button_remove"; | ot->idname = "ANIM_OT_keyingset_button_remove"; | ||||
| ot->description = "Remove current UI-active property from current keying set"; | ot->description = "Remove current UI-active property from current Keying Set"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->exec = remove_keyingset_button_exec; | ot->exec = remove_keyingset_button_exec; | ||||
| // op->poll = ??? | // op->poll = ??? | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| } | } | ||||
| Show All 34 Lines | |||||
| void ANIM_OT_keying_set_active_set(wmOperatorType *ot) | void ANIM_OT_keying_set_active_set(wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Set Active Keying Set"; | ot->name = "Set Active Keying Set"; | ||||
| ot->idname = "ANIM_OT_keying_set_active_set"; | ot->idname = "ANIM_OT_keying_set_active_set"; | ||||
| ot->description = "Select a new keying set as the active one"; | ot->description = "Set a new active Keying Set"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->invoke = keyingset_active_menu_invoke; | ot->invoke = keyingset_active_menu_invoke; | ||||
| ot->exec = keyingset_active_menu_exec; | ot->exec = keyingset_active_menu_exec; | ||||
| ot->poll = ED_operator_areaactive; | ot->poll = ED_operator_areaactive; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| ▲ Show 20 Lines • Show All 682 Lines • Show Last 20 Lines | |||||