[core] Fix style cascade loop when transitioning

This commit is contained in:
Bruno de Oliveira Abinader
2016-03-03 15:45:51 +02:00
parent bc63d75227
commit 877adedb0f
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -176,6 +176,7 @@ void Style::recalculate(float z) {
zoomHistory,
data.getDefaultFadeDuration());
hasPendingTransitions = false;
for (const auto& layer : layers) {
hasPendingTransitions |= layer->recalculate(parameters);