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

Fix reset tracker effect incorrectly moves analyse rectangle.

Related to #1353
parent 5e7d7c0e
......@@ -86,8 +86,7 @@ ButtonParamWidget::ButtonParamWidget(std::shared_ptr<AssetParameterModel> model,
// Tracker needs some special config on reset
QString current = m_model->getAsset()->get(m_keyParam.toUtf8().constData());
if (!current.isEmpty()) {
// Extract first keyframe
current = current.section(QLatin1Char('='), 1);
// Only keep first keyframe
current = current.section(QLatin1Char(';'), 0, 0);
}
if (current.isEmpty()) {
......
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