mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
clean up redundant loads, shift first load to getResource methods for sound and shape.
still need to properly sort image
This commit is contained in:
parent
b710a309bd
commit
a8d640e311
5 changed files with 5 additions and 16 deletions
|
|
@ -198,7 +198,7 @@ void SoundAsset::initializeAsset(void)
|
|||
return;
|
||||
|
||||
mSoundPath = getOwned() ? expandAssetFilePath(mSoundFile) : mSoundPath;
|
||||
loadSound();
|
||||
//loadSound();
|
||||
}
|
||||
|
||||
void SoundAsset::_onResourceChanged(const Torque::Path &path)
|
||||
|
|
@ -208,7 +208,7 @@ void SoundAsset::_onResourceChanged(const Torque::Path &path)
|
|||
|
||||
refreshAsset();
|
||||
|
||||
loadSound();
|
||||
//loadSound();
|
||||
}
|
||||
|
||||
void SoundAsset::onAssetRefresh(void)
|
||||
|
|
@ -218,7 +218,7 @@ void SoundAsset::onAssetRefresh(void)
|
|||
|
||||
//Update
|
||||
mSoundPath = getOwned() ? expandAssetFilePath(mSoundFile) : mSoundPath;
|
||||
loadSound();
|
||||
//loadSound();
|
||||
}
|
||||
|
||||
bool SoundAsset::loadSound()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue