mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Adds function for sceneObjects to report utilized assets
Add reporting of used assets to tsStatics and TerrData When saving a Scene, it will write static object asset dependencies to it's levelAsset Shifted level loader logic to pass up the levelAsset rather than full level path Made it so when level is loading, the levelAsset loads its dependencies. When the level is ended, as part of cleanup, they are unloaded Shifts defaultEditorLevel to be an actual asset and made the ToolsModule load assets Fixes the Save As action to correctly save out to the new level asset Fixed the autoLoadAssets logic to be cleaner and not manually check types Removed extra, unused DefaultEditorFile file
This commit is contained in:
parent
f7dbfff42d
commit
40dd926873
21 changed files with 263 additions and 255 deletions
|
|
@ -1691,6 +1691,12 @@ void TSStatic::updateMaterials()
|
|||
mShapeInstance->initMaterialList();
|
||||
}
|
||||
|
||||
void TSStatic::getUtilizedAssets(Vector<StringTableEntry>* usedAssetsList)
|
||||
{
|
||||
if(!mShapeAsset.isNull())
|
||||
usedAssetsList->push_back_unique(mShapeAssetId);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
//These functions are duplicated in tsStatic and shapeBase.
|
||||
//They each function a little differently; but achieve the same purpose of gathering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue