Handle updated evaluated properties in the fill layer tweaker instead of replacing it on every update (#1707)

This commit is contained in:
Tim Sylvester
2023-10-02 08:29:57 -07:00
committed by GitHub
parent 3f1807a11a
commit 59a5edb1ea
2 changed files with 42 additions and 68 deletions

View File

@@ -103,9 +103,8 @@ void RenderFillLayer::evaluate(const PropertyEvaluationParameters& parameters) {
evaluatedProperties = std::move(properties);
#if MLN_DRAWABLE_RENDERER
if (layerGroup) {
auto newTweaker = std::make_shared<FillLayerTweaker>(getID(), evaluatedProperties);
replaceTweaker(layerTweaker, std::move(newTweaker), {layerGroup});
if (layerTweaker) {
layerTweaker->updateProperties(evaluatedProperties);
}
#endif
}