Bladeren bron

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
Brian Roberts 2 jaren geleden
bovenliggende
commit
f903140d22
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  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.
    // we can restore it.
    SFXStatus prevState = mSource ? mSource->getStatus() : SFXStatusNull;
    SFXStatus prevState = mSource ? mSource->getStatus() : SFXStatusNull;
 
 
-   if (mSoundAsset.notNull() )
+   if (mSoundAsset.notNull() && mDirty.test(Track | Filename))
    {
    {
-      //mLocalProfile = *mSoundAsset->getSfxProfile();
       mDescription = *mSoundAsset->getSfxDescription();
       mDescription = *mSoundAsset->getSfxDescription();
    }
    }