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

Fix composition forced track lost on project load. Fixes #169

parent ad27e4b9
Pipeline #2912 passed with stage
in 20 minutes and 30 seconds
......@@ -60,6 +60,9 @@ int CompositionModel::construct(const std::weak_ptr<TimelineModel> &parent, cons
QString paramValue = sourceProperties->get(paramName.toUtf8().constData());
currentParameter.setAttribute(QStringLiteral("value"), paramValue);
if (sourceProps.contains(QStringLiteral("force_track"))) {
transition->set("force_track", sourceProperties->get_int("force_track"));
std::shared_ptr<CompositionModel> composition(new CompositionModel(parent, std::move(transition), id, xml, transitionId));
id = composition->m_id;
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