Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
29510c474b
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      Engine/source/T3D/sfx/sfxEmitter.cpp

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