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

CCBUG: 417143
parent 0b8d30e7
Pipeline #14765 passed with stage
in 20 minutes and 8 seconds
......@@ -1446,12 +1446,6 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim
in = 0;
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);
int targetId = prod.attribute(QStringLiteral("id")).toInt();
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