Generate data for 3d buildings only if 3d mode enabled.

This commit is contained in:
Daria Volvenkova 2015-12-17 11:43:53 +03:00
parent 3339b9bc1f
commit 86f5ffd371

View file

@ -432,7 +432,7 @@ gui::TWidgetsSizeInfo const & DrapeEngine::GetWidgetSizes()
void DrapeEngine::Allow3dMode(bool allow3d, bool allow3dBuildings)
{
m_threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
make_unique_dp<Allow3dBuildingsMessage>(allow3dBuildings),
make_unique_dp<Allow3dBuildingsMessage>(allow3d && allow3dBuildings),
MessagePriority::Normal);
m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread,