Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 832 Lines • ▼ Show 20 Lines | else if ((is_end_exact == true) || | ||||
| seqn->startofs = 0; | seqn->startofs = 0; | ||||
| seqn->anim_startofs += ts.len - 1; | seqn->anim_startofs += ts.len - 1; | ||||
| seqn->endstill = ts.enddisp - split_frame - 1; | seqn->endstill = ts.enddisp - split_frame - 1; | ||||
| seqn->startstill = 0; | seqn->startstill = 0; | ||||
| } | } | ||||
| BKE_sequence_reload_new_file(bmain, scene, seqn, false); | BKE_sequence_reload_new_file(bmain, scene, seqn, false); | ||||
| BKE_sequence_calc(scene, seqn); | BKE_sequence_calc(scene, seqn); | ||||
| BKE_sequence_invalidate_cache_in_range(scene, seq, seqn, SEQ_CACHE_ALL_TYPES); | |||||
| } | } | ||||
| return seqn; | return seqn; | ||||
| } | } | ||||
| static Sequence *split_seq_soft( | static Sequence *split_seq_soft( | ||||
| Main *UNUSED(bmain), Scene *scene, Sequence *seq, ListBase *new_seq_list, int split_frame) | Main *UNUSED(bmain), Scene *scene, Sequence *seq, ListBase *new_seq_list, int split_frame) | ||||
| { | { | ||||
| TransSeq ts; | TransSeq ts; | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | else if ((is_end_exact == true) || | ||||
| (((seqn->start + seqn->len) < split_frame) && (seqn->endstill))) { | (((seqn->start + seqn->len) < split_frame) && (seqn->endstill))) { | ||||
| seqn->start = split_frame - ts.len + 1; | seqn->start = split_frame - ts.len + 1; | ||||
| seqn->startofs = ts.len - 1; | seqn->startofs = ts.len - 1; | ||||
| seqn->endstill = ts.enddisp - split_frame - 1; | seqn->endstill = ts.enddisp - split_frame - 1; | ||||
| seqn->startstill = 0; | seqn->startstill = 0; | ||||
| } | } | ||||
| BKE_sequence_calc(scene, seqn); | BKE_sequence_calc(scene, seqn); | ||||
| BKE_sequence_invalidate_cache_in_range(scene, seq, seqn, SEQ_CACHE_ALL_TYPES); | |||||
| } | } | ||||
| return seqn; | return seqn; | ||||
| } | } | ||||
| /* Like duplicate, but only duplicate and split overlapping strips, | /* Like duplicate, but only duplicate and split overlapping strips, | ||||
| * strips to the left of the split_frame are ignored and strips to the right | * strips to the left of the split_frame are ignored and strips to the right | ||||
| * are moved to the end of slist. | * are moved to the end of slist. | ||||
| * We have to work on the same slist (not using a separate list), since | * We have to work on the same slist (not using a separate list), since | ||||
| ▲ Show 20 Lines • Show All 3,389 Lines • Show Last 20 Lines | |||||