Mercurial > fife-parpg
changeset 135:52d4a149389d
- applied layer visibility patch from abeyer (ticket #335)
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 26 Sep 2008 17:13:51 +0000 |
parents | ade070598fd1 |
children | b884e1edb0f4 |
files | engine/core/view/renderers/instancerenderer.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/view/renderers/instancerenderer.cpp Sat Sep 13 23:28:52 2008 +0000 +++ b/engine/core/view/renderers/instancerenderer.cpp Fri Sep 26 17:13:51 2008 +0000 @@ -104,6 +104,12 @@ } void InstanceRenderer::render(Camera* cam, Layer* layer, std::vector<Instance*>& instances) { + // patch #335 by abeyer + if (!layer->areInstancesVisible()) { + FL_DBG(_log, "Layer instances hidden"); + return; + } + FL_DBG(_log, "Iterating layer..."); CellGrid* cg = layer->getCellGrid(); if (!cg) {