mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Added early-out check if we're already successfully loaded
This commit is contained in:
parent
ce1be5e881
commit
11548d2630
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ void TerrainAsset::setTerrainFileName(const char* pScriptFile)
|
||||||
|
|
||||||
U32 TerrainAsset::load()
|
U32 TerrainAsset::load()
|
||||||
{
|
{
|
||||||
|
if (mLoadedState == AssetErrCode::Ok)
|
||||||
|
return mLoadedState;
|
||||||
|
|
||||||
if (!Torque::FS::IsFile(mTerrainFilePath))
|
if (!Torque::FS::IsFile(mTerrainFilePath))
|
||||||
{
|
{
|
||||||
mLoadedState = BadFileReference;
|
mLoadedState = BadFileReference;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue