From b06658693edb99604d3771aa91474671efc6e1f3 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Thu, 24 Dec 2015 13:06:40 +0300 Subject: [PATCH] Fix dropping building parts --- indexer/feature_visibility.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 7d7815fc1d..95cc530df1 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -248,11 +248,14 @@ bool IsDrawableForIndexGeometryOnly(FeatureBase const & f, int level) { Classificator const & c = classif(); + static uint32_t const buildingPartType = c.GetTypeByPath({"building:part"}); + TypesHolder const types(f); - if (types.GetGeoType() == GEOM_AREA && !types.Has(c.GetCoastType()) && - !scales::IsGoodForLevel(level, f.GetLimitRect())) - return false; + if (types.GetGeoType() == GEOM_AREA + && !types.Has(c.GetCoastType()) && !types.Has(buildingPartType) + && !scales::IsGoodForLevel(level, f.GetLimitRect())) + return false; return true; }