Exclude displacement for high level objects.

This commit is contained in:
Lev Dragunov 2016-02-04 15:59:05 +03:00 committed by Sergey Yershov
parent 16ee27b0a2
commit 00903aaa03

View file

@ -116,6 +116,13 @@ public:
for (auto const & node : m_storage)
{
uint32_t scale = node.m_minScale;
// Do not filter high level objects.
if (scale < 10)
{
AddNodeToSorter(node,scale);
acceptedNodes.Add(node);
continue;
}
for (; scale < scales::GetUpperScale(); ++scale)
{
float const delta = CalculateDeltaForZoom(scale);