From 78baadfe9543c3aefb6d2db560b77d0dbcaebb22 Mon Sep 17 00:00:00 2001 From: Henry Sternberg Date: Fri, 5 Jul 2024 16:22:04 +0100 Subject: [PATCH] [core][drape] Making arrows smooth again Signed-off-by: Henry Sternberg --- map/routing_manager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index f6cdcebfd..9bdf8f520 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -315,6 +315,7 @@ RoutingManager::RoutingManager(Callbacks && callbacks, Delegate & delegate) , m_extrapolator( [this](location::GpsInfo const & gpsInfo) { this->OnExtrapolatedLocationUpdate(gpsInfo); }) { + m_extrapolator.Enable(true); // Keeps smooth arrow movement whether routing or not m_routingSession.Init( #ifdef SHOW_ROUTE_DEBUG_MARKS [this](m2::PointD const & pt) { @@ -767,9 +768,6 @@ void RoutingManager::FollowRoute() m_transitReadManager->BlockTransitSchemeMode(true /* isBlocked */); - // Switching on the extrapolator only for following mode in car and bicycle navigation. - m_extrapolator.Enable(m_currentRouterType == RouterType::Vehicle || - m_currentRouterType == RouterType::Bicycle); m_delegate.OnRouteFollow(m_currentRouterType); m_bmManager->GetEditSession().ClearGroup(UserMark::Type::ROAD_WARNING); @@ -781,7 +779,6 @@ void RoutingManager::FollowRoute() void RoutingManager::CloseRouting(bool removeRoutePoints) { - m_extrapolator.Enable(false); // Hide preview. HidePreviewSegments();