comparison engine/core/view/renderers/instancerenderer.cpp @ 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 16c2b3ee59ce
children 7d88eddd2ec7
comparison
equal deleted inserted replaced
552:718e154a43c8 553:5987f78a2364
124 FL_DBG(_log, "Iterating instances..."); 124 FL_DBG(_log, "Iterating instances...");
125 Instance* instance = (*instance_it)->instance; 125 Instance* instance = (*instance_it)->instance;
126 InstanceVisual* visual = instance->getVisual<InstanceVisual>(); 126 InstanceVisual* visual = instance->getVisual<InstanceVisual>();
127 RenderItem& vc = **instance_it; 127 RenderItem& vc = **instance_it;
128 unsigned char trans = visual->getTransparency(); 128 unsigned char trans = visual->getTransparency();
129 bool visible = visual->isVisible();
130
131 if(!visible)
132 continue;
129 133
130 /** 134 /**
131 * the instance transparency value take precedence. If it's 0 use the layer trans 135 * the instance transparency value take precedence. If it's 0 use the layer trans
132 * 136 *
133 * \todo Instances cannot be completely opaque when their layer's transparency is non zero. 137 * \todo Instances cannot be completely opaque when their layer's transparency is non zero.