Don't spam the sim with repeated queries for an empty list of materials.

meow-7.2.2
Tonya Souther 2013-02-03 23:01:22 -06:00
parent da82358116
commit 5bbc33383e
1 changed files with 5 additions and 0 deletions

View File

@ -473,6 +473,11 @@ void LLMaterialMgr::processGetQueue()
material_queue_t& materials = itRegionQueue->second;
material_queue_t::iterator loopMaterial = materials.begin();
if (materials.end() == loopMaterial)
{
//LL_INFOS("Material") << "Get queue for region empty, trying next region." << LL_ENDL;
continue;
}
while ( (materials.end() != loopMaterial) && (materialsData.size() <= MATERIALS_GET_MAX_ENTRIES) )
{
material_queue_t::iterator itMaterial = loopMaterial++;