Commit 2b4fcacc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix clips with mix cannot be move onto another track.

Fixes #1120
parent af4a81f6
......@@ -208,8 +208,8 @@ Fun TrackModel::requestClipInsertion_lambda(int clipId, int position, bool updat
qDebug() << "Error : Clip Insertion failed because timeline is not available anymore";
return false;
};
if (!finalMove && !hasMix(clipId) && (!m_playlists[0].is_blank_at(position) || !m_playlists[1].is_blank_at(position))) {
qDebug()<<"==== WARNING INVALID MOVE";
if (!finalMove && !hasMix(clipId) && !m_playlists[0].is_blank_at(target_playlist)) {
qDebug()<<"==== WARNING INVALID MOVE FOR CLIP"<<clipId;
return []() { return false; };
}
if (target_clip >= count && m_playlists[target_playlist].is_blank_at(position)) {
......
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