mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 15:43:45 +00:00
Expands ScriptAsset behavior to operate as a generic type-settable asset
This commit is contained in:
parent
b6f3c25fea
commit
167f98b767
6 changed files with 50 additions and 4 deletions
|
|
@ -2988,6 +2988,8 @@ void AssetManager::unloadAsset( AssetDefinition* pAssetDefinition )
|
|||
// Debug Profiling.
|
||||
PROFILE_SCOPE(AssetManager_UnloadAsset);
|
||||
|
||||
pAssetDefinition->mpAssetBase->unloadAsset();
|
||||
|
||||
// Destroy the asset.
|
||||
if(pAssetDefinition->mpAssetBase->isProperlyAdded())
|
||||
pAssetDefinition->mpAssetBase->deleteObject();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue