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

parent ad27e4b9
...@@ -60,6 +60,9 @@ int CompositionModel::construct(const std::weak_ptr<TimelineModel> &parent, cons ...@@ -60,6 +60,9 @@ int CompositionModel::construct(const std::weak_ptr<TimelineModel> &parent, cons
QString paramValue = sourceProperties->get(paramName.toUtf8().constData()); QString paramValue = sourceProperties->get(paramName.toUtf8().constData());
currentParameter.setAttribute(QStringLiteral("value"), paramValue); 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)); std::shared_ptr<CompositionModel> composition(new CompositionModel(parent, std::move(transition), id, xml, transitionId));
id = composition->m_id; 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