Merge branch 'SoundAssetInitRollin' of https://github.com/Areloch/Torque3D into Preview4_0

This commit is contained in:
Areloch 2021-09-04 01:38:22 -05:00
commit cd1fd1ccf4
6 changed files with 214 additions and 138 deletions

View file

@ -38,7 +38,7 @@ function AssetBrowser::onSoundAssetEditorDropped(%this, %assetDef, %position)
%newSFXEmitter = new SFXEmitter()
{
position = %pos;
fileName = %assetDef.getSoundPath();
soundAsset = %assetDef.getAssetId();
pitch = %assetDef.pitchAdjust;
volume = %assetDef.volumeAdjust;
};
@ -50,4 +50,9 @@ function AssetBrowser::onSoundAssetEditorDropped(%this, %assetDef, %position)
EWorldEditor.isDirty = true;
}
function AssetBrowser::editSoundAsset(%this, %assetDef)
{
%soundSource = %assetDef.playSound();
}