[core] fixes #8433: don't skip style recalculations for fade-from-zero transitions (#8440)

This commit is contained in:
Justin R. Miller
2017-03-16 16:23:15 -07:00
committed by GitHub
parent 6fb1fb52af
commit aae11a3430

View File

@@ -328,7 +328,7 @@ void Style::recalculate(float z, const TimePoint& timePoint, MapMode mode) {
hasPendingTransitions = false;
for (const auto& layer : layers) {
const bool hasTransitions = layer->baseImpl->evaluate(parameters);
hasPendingTransitions |= layer->baseImpl->evaluate(parameters);
// Disable this layer if it doesn't need to be rendered.
const bool needsRendering = layer->baseImpl->needsRendering(zoomHistory.lastZoom);
@@ -336,8 +336,6 @@ void Style::recalculate(float z, const TimePoint& timePoint, MapMode mode) {
continue;
}
hasPendingTransitions |= hasTransitions;
// If this layer has a source, make sure that it gets loaded.
if (Source* source = getSource(layer->baseImpl->source)) {
source->baseImpl->enabled = true;