浏览代码

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 年之前
父节点
当前提交
f903140d22
共有 1 个文件被更改,包括 1 次插入2 次删除
  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();
    }