Skip to content
Snippets Groups Projects
Commit 3e74b56d authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix new effect particle to not break other particles

parent 39e0f50b
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -626,7 +626,7 @@ void LLViewerPartSourceSpiral::update(const F32 dt)
{
if (!mImagep)
{
mImagep = LLViewerFetchedTexture::sPixieSmallImagep;
mImagep = LLViewerFetchedTexture::sPixieEffectImagep;
}
const F32 RATE = 0.025f;
......@@ -799,7 +799,7 @@ void LLViewerPartSourceBeam::update(const F32 dt)
if (!mImagep)
{
mImagep = LLViewerFetchedTexture::sPixieSmallImagep;
mImagep = LLViewerFetchedTexture::sPixieEffectImagep;
}
LLViewerPart* part = new LLViewerPart();
......@@ -886,7 +886,7 @@ void LLViewerPartSourceChat::update(const F32 dt)
{
if (!mImagep)
{
mImagep = LLViewerFetchedTexture::sPixieSmallImagep;
mImagep = LLViewerFetchedTexture::sPixieEffectImagep;
}
......
......@@ -82,6 +82,7 @@ LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sSmokeImagep = NULL;
LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sFlatNormalImagep = NULL;
LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sDefaultIrradiancePBRp;
LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sPixieSmallImagep = NULL;
LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sPixieEffectImagep = NULL;
// [SL:KB] - Patch: Render-TextureToggle (Catznip-4.0)
LLPointer<LLViewerFetchedTexture> LLViewerFetchedTexture::sDefaultDiffuseImagep = NULL;
// [/SL:KB]
......@@ -461,6 +462,7 @@ void LLViewerTextureManager::cleanup()
LLViewerFetchedTexture::sFlatNormalImagep = NULL;
LLViewerFetchedTexture::sDefaultIrradiancePBRp = NULL;
LLViewerFetchedTexture::sPixieSmallImagep = NULL;
LLViewerFetchedTexture::sPixieEffectImagep = NULL;
LLViewerFetchedTexture::sDefaultDiffuseImagep = NULL;
LLViewerMediaTexture::cleanUpClass();
......
......@@ -538,6 +538,7 @@ class LLViewerFetchedTexture : public LLViewerTexture
static LLPointer<LLViewerFetchedTexture> sSmokeImagep; // Old "Default" translucent texture
static LLViewerFetchedTexture* getSmokeImage();
static LLPointer<LLViewerFetchedTexture> sPixieSmallImagep; // Small pixmap for default particle tex
static LLPointer<LLViewerFetchedTexture> sPixieEffectImagep; // Small pixmap for default particle tex
// [SL:KB] - Patch: Render-TextureToggle (Catznip-4.0)
static LLPointer<LLViewerFetchedTexture> sDefaultDiffuseImagep;
// [/SL:KB]
......
......@@ -127,7 +127,10 @@ void LLViewerTextureList::doPreloadImages()
LLViewerFetchedTexture::sDefaultIrradiancePBRp = LLViewerTextureManager::getFetchedTextureFromFile("default_irradiance.png", FTT_LOCAL_FILE, MIPMAP_YES, LLViewerFetchedTexture::BOOST_UI);
// Set the default particle image
LLViewerFetchedTexture::sPixieSmallImagep = LLViewerTextureManager::getFetchedTextureFromFile("PixieSmall.png", FTT_LOCAL_FILE, MIPMAP_YES, LLViewerFetchedTexture::BOOST_UI);
LLViewerFetchedTexture::sPixieSmallImagep = LLViewerTextureManager::getFetchedTextureFromFile("pixiesmall.j2c", FTT_LOCAL_FILE, MIPMAP_YES, LLViewerFetchedTexture::BOOST_UI);
// Set the default particle image
LLViewerFetchedTexture::sPixieEffectImagep = LLViewerTextureManager::getFetchedTextureFromFile("PixieSmall.png", FTT_LOCAL_FILE, MIPMAP_YES, LLViewerFetchedTexture::BOOST_UI);
image_list->initFromFile();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment