mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +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
|
|
@ -301,13 +301,11 @@ void ImageAsset::initializeAsset()
|
|||
ResourceManager::get().getChangedSignal().notify(this, &ImageAsset::_onResourceChanged);
|
||||
|
||||
mImagePath = getOwned() ? expandAssetFilePath(mImageFileName) : mImagePath;
|
||||
//loadImage();
|
||||
}
|
||||
|
||||
void ImageAsset::onAssetRefresh()
|
||||
{
|
||||
mImagePath = getOwned() ? expandAssetFilePath(mImageFileName) : mImagePath;
|
||||
//loadImage();
|
||||
}
|
||||
|
||||
void ImageAsset::_onResourceChanged(const Torque::Path& path)
|
||||
|
|
@ -317,7 +315,6 @@ void ImageAsset::_onResourceChanged(const Torque::Path& path)
|
|||
|
||||
refreshAsset();
|
||||
|
||||
//loadImage();
|
||||
onAssetRefresh();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue