Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 2,128 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| static int sequencer_reassign_inputs_exec(bContext *C, wmOperator *op) | static int sequencer_reassign_inputs_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Sequence *seq1, *seq2, *seq3, *last_seq = BKE_sequencer_active_get(scene); | Sequence *seq1, *seq2, *seq3, *last_seq = BKE_sequencer_active_get(scene); | ||||
| const char *error_msg; | const char *error_msg; | ||||
| if (BKE_sequence_effect_get_num_inputs(last_seq->type) != 0) { | if (BKE_sequence_effect_get_num_inputs(last_seq->type) == 0) { | ||||
| BKE_report(op->reports, RPT_ERROR, "Cannot reassign inputs: strip has no inputs"); | BKE_report(op->reports, RPT_ERROR, "Cannot reassign inputs: strip has no inputs"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (!seq_effect_find_selected( | if (!seq_effect_find_selected( | ||||
| scene, last_seq, last_seq->type, &seq1, &seq2, &seq3, &error_msg) || | scene, last_seq, last_seq->type, &seq1, &seq2, &seq3, &error_msg) || | ||||
| BKE_sequence_effect_get_num_inputs(last_seq->type) == 0) { | BKE_sequence_effect_get_num_inputs(last_seq->type) == 0) { | ||||
| BKE_report(op->reports, RPT_ERROR, error_msg); | BKE_report(op->reports, RPT_ERROR, error_msg); | ||||
| ▲ Show 20 Lines • Show All 1,994 Lines • Show Last 20 Lines | |||||