From 29510c474b853d20383e1aae6782f966116ce030 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sun, 12 Feb 2023 23:11:36 -0600 Subject: [PATCH] Fixed logic in SFXEmitter so it wouldn't keep overriding local properties with the asset Description DB values any time a property was changed --- Engine/source/T3D/sfx/sfxEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Engine/source/T3D/sfx/sfxEmitter.cpp b/Engine/source/T3D/sfx/sfxEmitter.cpp index e33409cdb..fec31fdef 100644 --- a/Engine/source/T3D/sfx/sfxEmitter.cpp +++ b/Engine/source/T3D/sfx/sfxEmitter.cpp @@ -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(); }