Commit 72f0ce99 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Insert/overwrite mode: delete mixes on clip move

parent 4c470753
......@@ -3867,6 +3867,13 @@ bool TimelineController::endFakeMove(int clipId, int position, bool updateView,
int currentTrack = m_model->m_allClips[clipId]->getCurrentTrackId();
bool res = true;
if (currentTrack > -1) {
std::pair<MixInfo,MixInfo> mixData = m_model->getTrackById_const(currentTrack)->getMixInfo(clipId);
if (mixData.first.secondClipId > -1) {
m_model->removeMixWithUndo(mixData.first.secondClipId, undo, redo);
}
if (mixData.second.firstClipId > -1) {
m_model->removeMixWithUndo(mixData.second.secondClipId, undo, redo);
}
res = m_model->getTrackById(currentTrack)->requestClipDeletion(clipId, updateView, invalidateTimeline, undo, redo, false, false);
}
if (m_model->m_editMode == TimelineMode::OverwriteEdit) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment