diff options
Diffstat (limited to 'src/mbgl/style/style_impl.cpp')
-rw-r--r-- | src/mbgl/style/style_impl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp index 0c7f924917..5c9edc789f 100644 --- a/src/mbgl/style/style_impl.cpp +++ b/src/mbgl/style/style_impl.cpp @@ -92,8 +92,7 @@ void Style::Impl::parse(const std::string& json_) { layers.clear(); images.clear(); - transitionOptions = {}; - transitionOptions.duration = util::DEFAULT_TRANSITION_DURATION; + transitionOptions = parser.transition; for (auto& source : parser.sources) { addSource(std::move(source)); |