comparison engine/core/view/renderers/instancerenderer.cpp @ 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 0b6998fde366
children ab41334e8a57
comparison
equal deleted inserted replaced
134:ade070598fd1 135:52d4a149389d
102 102
103 InstanceRenderer::~InstanceRenderer() { 103 InstanceRenderer::~InstanceRenderer() {
104 } 104 }
105 105
106 void InstanceRenderer::render(Camera* cam, Layer* layer, std::vector<Instance*>& instances) { 106 void InstanceRenderer::render(Camera* cam, Layer* layer, std::vector<Instance*>& instances) {
107 // patch #335 by abeyer
108 if (!layer->areInstancesVisible()) {
109 FL_DBG(_log, "Layer instances hidden");
110 return;
111 }
112
107 FL_DBG(_log, "Iterating layer..."); 113 FL_DBG(_log, "Iterating layer...");
108 CellGrid* cg = layer->getCellGrid(); 114 CellGrid* cg = layer->getCellGrid();
109 if (!cg) { 115 if (!cg) {
110 FL_WARN(_log, "No cellgrid assigned to layer, cannot draw instances"); 116 FL_WARN(_log, "No cellgrid assigned to layer, cannot draw instances");
111 return; 117 return;