MAINT-6257 Particle textures loading issues.

master
andreykproductengine 2016-03-25 17:24:06 +02:00
parent 107b668718
commit d9545003ed
2 changed files with 12 additions and 3 deletions

View File

@ -183,7 +183,11 @@ void LLViewerTextureList::doPreloadImages()
image->setAddressMode(LLTexUnit::TAM_WRAP);
mImagePreloads.insert(image);
}
image = LLViewerTextureManager::getFetchedTextureFromFile("cloud-particle.j2c", FTT_LOCAL_FILE, MIPMAP_YES, LLViewerFetchedTexture::BOOST_CLOUDS);
if (image)
{
mImagePreloads.insert(image);
}
}
static std::string get_texture_list_name()

View File

@ -2526,8 +2526,13 @@ void LLVOAvatar::idleUpdateLoadingEffect()
particle_parameters.mPartData.mStartColor = LLColor4(1, 1, 1, 0.5f);
particle_parameters.mPartData.mEndColor = LLColor4(1, 1, 1, 0.0f);
particle_parameters.mPartData.mStartScale.mV[VX] = 0.8f;
LLViewerTexture* cloud = LLViewerTextureManager::getFetchedTextureFromFile("cloud-particle.j2c");
particle_parameters.mPartImageID = cloud->getID();
static LLUUID cloud_id = LLUUID::null;
if (cloud_id == LLUUID::null)
{
LLViewerTexture* cloud = LLViewerTextureManager::getFetchedTextureFromFile("cloud-particle.j2c");
cloud_id = cloud->getID();
}
particle_parameters.mPartImageID = cloud_id;
particle_parameters.mMaxAge = 0.f;
particle_parameters.mPattern = LLPartSysData::LL_PART_SRC_PATTERN_ANGLE_CONE;
particle_parameters.mInnerAngle = F_PI;