Browse Source

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 năm trước cách đây
mục cha
commit
f903140d22
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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();
    }