Review fixes

This commit is contained in:
r.kuznetsov 2015-05-27 18:11:08 +03:00
parent baded09453
commit e3fa5c4974

View file

@ -58,7 +58,10 @@ void RenderBucket::AddOverlayHandle(drape_ptr<OverlayHandle> && handle)
void RenderBucket::Update(ScreenBase const & modelView)
{
for (drape_ptr<OverlayHandle> & overlayHandle : m_overlay)
overlayHandle->Update(modelView);
{
if (overlayHandle->IsVisible())
overlayHandle->Update(modelView);
}
}
void RenderBucket::CollectOverlayHandles(ref_ptr<OverlayTree> tree, bool isTransparent)