2
0
Эх сурвалжийг харах

Fixed logic in SFXEmitter so it wouldn't keep overriding local properties with the asset Description DB values any time a property was changed

Areloch 2 жил өмнө
parent
commit
29510c474b

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