# HG changeset patch # User chewie@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1222449231 0 # Node ID 52d4a149389d296aaab05875d10327e19d8bf563 # Parent ade070598fd11fa6d5979aade608babc4d65216d - applied layer visibility patch from abeyer (ticket #335) diff -r ade070598fd1 -r 52d4a149389d engine/core/view/renderers/instancerenderer.cpp --- 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& 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) {