Merge pull request #957 from Areloch/SFXEmitter_Desc_Fix

Fixed logic in SFXEmitter so it wouldn't keep overriding local properties with the asset Description DB values any time a property was changed
This commit is contained in:
Brian Roberts 2023-02-13 13:17:05 -06:00 committed by GitHub
commit f903140d22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -689,9 +689,8 @@ void SFXEmitter::_update()
// we can restore it.
SFXStatus prevState = mSource ? mSource->getStatus() : SFXStatusNull;
if (mSoundAsset.notNull() )
if (mSoundAsset.notNull() && mDirty.test(Track | Filename))
{
//mLocalProfile = *mSoundAsset->getSfxProfile();
mDescription = *mSoundAsset->getSfxDescription();
}