code duplication prune. should aid in stability

This commit is contained in:
AzaezelX 2021-10-03 02:56:26 -05:00
parent 10f2453cee
commit 98a079a797
123 changed files with 632 additions and 966 deletions

View file

@ -133,7 +133,7 @@ LightFlareData::LightFlareData()
for ( U32 i = 0; i < MAX_ELEMENTS; i++ )
mElementDist[i] = -1.0f;
INIT_IMAGEASSET(FlareTexture);
INIT_ASSET(FlareTexture);
}
LightFlareData::~LightFlareData()
@ -219,7 +219,7 @@ void LightFlareData::packData( BitStream *stream )
stream->writeFlag( mFlareEnabled );
PACKDATA_IMAGEASSET(FlareTexture);
PACKDATA_ASSET(FlareTexture);
stream->write( mScale );
stream->write( mOcclusionRadius );
@ -244,7 +244,7 @@ void LightFlareData::unpackData( BitStream *stream )
mFlareEnabled = stream->readFlag();
UNPACKDATA_IMAGEASSET(FlareTexture);
UNPACKDATA_ASSET(FlareTexture);
stream->read( &mScale );
stream->read( &mOcclusionRadius );