summaryrefslogtreecommitdiffstats
path: root/src/imports/rasterrenderer/batchrenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/rasterrenderer/batchrenderer.cpp')
-rw-r--r--src/imports/rasterrenderer/batchrenderer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/imports/rasterrenderer/batchrenderer.cpp b/src/imports/rasterrenderer/batchrenderer.cpp
index c6b36db..8d31513 100644
--- a/src/imports/rasterrenderer/batchrenderer.cpp
+++ b/src/imports/rasterrenderer/batchrenderer.cpp
@@ -112,7 +112,7 @@ void BatchRenderer::registerAnimator(LottieAnimation *animator)
entry->currentFrame = animator->startFrame();
entry->animDir = animator->direction();
entry->bmTreeBlueprint = new BMBase;
- parse(entry->bmTreeBlueprint, animator->jsonSource());
+ parse(entry->bmTreeBlueprint, animator->jsonSource(), animator->version());
m_waitCondition.wakeAll();
}
@@ -236,7 +236,8 @@ void BatchRenderer::run()
}
}
-int BatchRenderer::parse(BMBase *rootElement, const QByteArray &jsonSource) const
+int BatchRenderer::parse(BMBase *rootElement, const QByteArray &jsonSource,
+ const QVersionNumber &version) const
{
QJsonDocument doc = QJsonDocument::fromJson(jsonSource);
QJsonObject rootObj = doc.object();
@@ -265,7 +266,7 @@ int BatchRenderer::parse(BMBase *rootElement, const QByteArray &jsonSource) cons
QString refId = jsonLayer.value("refId").toString();
jsonLayer.insert("asset", assets.value(refId));
}
- BMLayer *layer = BMLayer::construct(jsonLayer);
+ BMLayer *layer = BMLayer::construct(jsonLayer, version);
if (layer) {
layer->setParent(rootElement);
// Mask layers must be rendered before the layers they affect to