Apply perspective after the drape engine creation only if route following is active.

This commit is contained in:
Daria Volvenkova 2016-01-11 14:18:56 +03:00
parent 7908dbf3df
commit 13e5596236

View file

@ -1292,7 +1292,7 @@ void Framework::CreateDrapeEngine(ref_ptr<dp::OGLContextFactory> contextFactory,
if (m_routingSession.IsActive())
{
InsertRoute(m_routingSession.GetRoute());
if (allow3d)
if (allow3d && m_routingSession.IsFollowing())
m_drapeEngine->EnablePerspective(kRotationAngle, kAngleFOV);
}
}