[core] Fix style cascade loop when transitioning
This commit is contained in:
@@ -247,7 +247,7 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
|
||||
view.afterRender();
|
||||
|
||||
if (style->hasTransitions()) {
|
||||
updateFlags |= Update::Classes;
|
||||
updateFlags |= Update::Zoom;
|
||||
asyncUpdate.send();
|
||||
} else if (painter->needsAnimation()) {
|
||||
updateFlags |= Update::Repaint;
|
||||
|
||||
@@ -176,6 +176,7 @@ void Style::recalculate(float z) {
|
||||
zoomHistory,
|
||||
data.getDefaultFadeDuration());
|
||||
|
||||
hasPendingTransitions = false;
|
||||
for (const auto& layer : layers) {
|
||||
hasPendingTransitions |= layer->recalculate(parameters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user