mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 21:23:46 +00:00
Merge branch 'VerveMergeWIP' of https://github.com/Areloch/Torque3D into development
This commit is contained in:
commit
00b958aff9
549 changed files with 68656 additions and 11 deletions
|
|
@ -137,6 +137,8 @@ void GameObjectAsset::initializeAsset()
|
|||
|
||||
if (Platform::isFile(mScriptFile))
|
||||
Con::executeFile(mScriptFile, false, false);
|
||||
|
||||
mTAMLFile = expandAssetFilePath(mTAMLFile);
|
||||
}
|
||||
|
||||
void GameObjectAsset::onAssetRefresh()
|
||||
|
|
@ -146,6 +148,8 @@ void GameObjectAsset::onAssetRefresh()
|
|||
|
||||
if (Platform::isFile(mScriptFile))
|
||||
Con::executeFile(mScriptFile, false, false);
|
||||
|
||||
mTAMLFile = expandAssetFilePath(mTAMLFile);
|
||||
}
|
||||
|
||||
void GameObjectAsset::setScriptFile(const char* pScriptFile)
|
||||
|
|
@ -161,7 +165,7 @@ void GameObjectAsset::setScriptFile(const char* pScriptFile)
|
|||
return;
|
||||
|
||||
// Update.
|
||||
mScriptFile = getOwned() ? expandAssetFilePath(pScriptFile) : StringTable->insert(pScriptFile);
|
||||
mScriptFile = expandAssetFilePath(pScriptFile);
|
||||
|
||||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
|
|
@ -177,11 +181,11 @@ void GameObjectAsset::setTAMLFile(const char* pTAMLFile)
|
|||
pTAMLFile = StringTable->insert(pTAMLFile);
|
||||
|
||||
// Ignore no change,
|
||||
if (pTAMLFile == mScriptFile)
|
||||
if (pTAMLFile == mTAMLFile)
|
||||
return;
|
||||
|
||||
// Update.
|
||||
mTAMLFile = getOwned() ? expandAssetFilePath(pTAMLFile) : StringTable->insert(pTAMLFile);
|
||||
mTAMLFile = expandAssetFilePath(pTAMLFile);
|
||||
|
||||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue