mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
leverage isScriptFile
(also initialize scattersky. mNightCubemapName = StringTable->EmptyString();)
This commit is contained in:
parent
c41b8e00ff
commit
f185bef8a3
9 changed files with 18 additions and 17 deletions
|
|
@ -133,7 +133,7 @@ void GameObjectAsset::initializeAsset()
|
|||
//Ensure we have an expanded filepath
|
||||
mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
|
||||
mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath;
|
||||
|
|
@ -144,7 +144,7 @@ void GameObjectAsset::onAssetRefresh()
|
|||
//Ensure we have an expanded filepath
|
||||
mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
|
||||
mTAMLPath = getOwned() ? expandAssetFilePath(mTAMLFile) : mTAMLPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue