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

Fix pasted clips with negative speed have wrong in/out.

CCBUG: 417143
parent 9fb411c7
...@@ -1427,12 +1427,6 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim ...@@ -1427,12 +1427,6 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim
in = 0; in = 0;
timeline->m_allClips[newId]->m_producer->set("length", out + 1); timeline->m_allClips[newId]->m_producer->set("length", out + 1);
} }
if (speed < 0) {
// on negative speed clips, in/out are inverted
int length = out - in;
in = timeline->m_allClips[newId]->getMaxDuration() - out;
out = in + length;
}
timeline->m_allClips[newId]->setInOut(in, out); timeline->m_allClips[newId]->setInOut(in, out);
int targetId = prod.attribute(QStringLiteral("id")).toInt(); int targetId = prod.attribute(QStringLiteral("id")).toInt();
correspondingIds[targetId] = newId; correspondingIds[targetId] = newId;
......
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