Mercurial > fife-parpg
changeset 553:5987f78a2364
* setVisible() should work again. The fix is a bit hacky but works for the moment. fixes [ticket:471]
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 17 Jun 2010 12:38:12 +0000 |
parents | 718e154a43c8 |
children | 9b549d42f9ea |
files | engine/core/view/renderers/instancerenderer.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/view/renderers/instancerenderer.cpp Wed Jun 16 16:07:20 2010 +0000 +++ b/engine/core/view/renderers/instancerenderer.cpp Thu Jun 17 12:38:12 2010 +0000 @@ -126,6 +126,10 @@ InstanceVisual* visual = instance->getVisual<InstanceVisual>(); 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