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:
Areloch 2023-02-12 23:11:36 -06:00
parent 7fa2e72d5f
commit 29510c474b

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();
}