summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-29 14:53:54 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-30 13:03:07 +0300
commitb83dfb7eb53cd7c13c98149220b960351501c8c1 (patch)
treebc6397f13f0c4110fadcfb649ad4d0ab75c22b03 /src/mbgl/style
parent5cf0fc0f8bb3f66fd7844cae73efca1a4c2d94f5 (diff)
downloadqtlocation-mapboxgl-b83dfb7eb53cd7c13c98149220b960351501c8c1.tar.gz
Revert "[core] Factor timePoint initialization"
This reverts commit 3790caafa3c98706c5cf0618c8aec592b2780bba.
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp
index e75925f476..a03a18fdaf 100644
--- a/src/mbgl/style/style.cpp
+++ b/src/mbgl/style/style.cpp
@@ -306,13 +306,13 @@ void Style::update(const UpdateParameters& parameters) {
const bool zoomChanged = zoomHistory.update(parameters.transformState.getZoom(), parameters.timePoint);
const TransitionParameters transitionParameters {
- parameters.timePoint,
+ parameters.mode == MapMode::Continuous ? parameters.timePoint : Clock::time_point::max(),
parameters.mode == MapMode::Continuous ? transitionOptions : TransitionOptions()
};
const PropertyEvaluationParameters evaluationParameters {
zoomHistory,
- parameters.timePoint,
+ parameters.mode == MapMode::Continuous ? parameters.timePoint : Clock::time_point::max(),
parameters.mode == MapMode::Continuous ? util::DEFAULT_FADE_DURATION : Duration::zero()
};