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:
AzaezelX 2023-10-09 14:41:14 -05:00
parent b710a309bd
commit a8d640e311
5 changed files with 5 additions and 16 deletions

View file

@ -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()