Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Change Effect Input Operator | /** \name Change Effect Input Operator | ||||
| * \{ */ | * \{ */ | ||||
| static const EnumPropertyItem prop_change_effect_input_types[] = { | static const EnumPropertyItem prop_change_effect_input_types[] = { | ||||
| {0, "A_B", 0, "A -> B", ""}, | {0, "A_B", 0, "A and B", "Swap A and B inputs"}, | ||||
| {1, "B_C", 0, "B -> C", ""}, | {1, "B_C", 0, "B and C", "Swap B and C inputs"}, | ||||
| {2, "A_C", 0, "A -> C", ""}, | {2, "A_C", 0, "A and C", "Swap A and C inputs"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static int sequencer_change_effect_input_exec(bContext *C, wmOperator *op) | static int sequencer_change_effect_input_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Sequence *seq = SEQ_select_active_get(scene); | Sequence *seq = SEQ_select_active_get(scene); | ||||
| Show All 27 Lines | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot) | void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot) | ||||
| { | { | ||||
| /* Identifiers. */ | /* Identifiers. */ | ||||
| ot->name = "Change Effect Input"; | ot->name = "Change Effect Input"; | ||||
| ot->idname = "SEQUENCER_OT_change_effect_input"; | ot->idname = "SEQUENCER_OT_change_effect_input"; | ||||
| ot->description = "Swap the effect inputs"; | |||||
| /* Api callbacks. */ | /* Api callbacks. */ | ||||
| ot->exec = sequencer_change_effect_input_exec; | ot->exec = sequencer_change_effect_input_exec; | ||||
| ot->poll = sequencer_effect_poll; | ot->poll = sequencer_effect_poll; | ||||
| /* Flags. */ | /* Flags. */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||