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

Fix revert clip speed failing

parent c7e6a64d
Pipeline #6446 passed with stage
in 17 minutes and 58 seconds
...@@ -457,7 +457,7 @@ bool ClipModel::useTimewarpProducer(double speed, bool changeDuration, Fun &undo ...@@ -457,7 +457,7 @@ bool ClipModel::useTimewarpProducer(double speed, bool changeDuration, Fun &undo
int in = getIn(); int in = getIn();
int out = getOut(); int out = getOut();
int duration = out - in; int duration = out - in;
in = m_producer->get_length() * std::fabs(m_speed) - out; in = qMax(0, (int)(m_producer->get_length() * std::fabs(m_speed) - out - 1));
out = in + duration; out = in + duration;
operation = [operation, in, out, this]() { operation = [operation, in, out, this]() {
bool res = operation(); bool res = operation();
......
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