timeline: when ripple removing area, don't split gaps

This commit is contained in:
itsmattkc
2022-07-25 18:17:51 -07:00
parent 7739198437
commit 9eb0aa80e1
@@ -63,8 +63,14 @@ void TrackRippleRemoveAreaCommand::prepare()
// If it's getting trimmed, determine if it's actually getting spliced
if (first_block_is_out_trimmed && first_block_is_in_trimmed) {
// This block is getting spliced, so we'll handle that later
splice_split_command_ = new BlockSplitCommand(first_block, range_.in());
if (dynamic_cast<GapBlock*>(first_block)) {
trim_out_ = {first_block,
first_block->length(),
first_block->length() - range_.length()};
} else {
// This block is getting spliced, so we'll handle that later
splice_split_command_ = new BlockSplitCommand(first_block, range_.in());
}
} else {
// It's just getting trimmed or removed, so we'll append that operation
if (first_block_is_out_trimmed) {