# HG changeset patch # User helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1277873855 0 # Node ID da381ecca97ddc156f7f7bbbdc9839b26eb6f5f4 # Parent edc9efe969c2a5bce2a128a92ac24e74de7540fa * This is a better solution as in commit 3374. Now only visible instances be added to the RenderList. fixes[ticket:471] diff -r edc9efe969c2 -r da381ecca97d engine/core/view/layercache.cpp --- a/engine/core/view/layercache.cpp Tue Jun 29 02:26:28 2010 +0000 +++ b/engine/core/view/layercache.cpp Wed Jun 30 04:57:35 2010 +0000 @@ -311,7 +311,9 @@ updateEntry(entry); RenderItem& item = m_instances[entry.instance_index]; - if(!item.image) + InstanceVisual* visual = item.instance->getVisual(); + bool visible = visual->isVisible(); + if(!item.image || !visible) continue; Point3D screen_point = m_camera->virtualScreenToScreen(item.screenpoint); diff -r edc9efe969c2 -r da381ecca97d engine/core/view/renderers/instancerenderer.cpp --- a/engine/core/view/renderers/instancerenderer.cpp Tue Jun 29 02:26:28 2010 +0000 +++ b/engine/core/view/renderers/instancerenderer.cpp Wed Jun 30 04:57:35 2010 +0000 @@ -128,10 +128,6 @@ InstanceVisual* visual = instance->getVisual(); RenderItem& vc = **instance_it; unsigned char trans = visual->getTransparency(); - bool visible = visual->isVisible(); - - if(!visible) - continue; /** * the instance transparency value take precedence. If it's 0 use the layer trans