mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +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
|
|
@ -119,12 +119,12 @@ void GUIAsset::initializeAsset()
|
|||
{
|
||||
mGUIPath = expandAssetFilePath(mGUIFile);
|
||||
|
||||
if (Platform::isFile(mGUIPath))
|
||||
if (Platform::isScriptFile(mGUIPath))
|
||||
Con::executeFile(mGUIPath, false, false);
|
||||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -132,12 +132,12 @@ void GUIAsset::onAssetRefresh()
|
|||
{
|
||||
mGUIPath = expandAssetFilePath(mGUIFile);
|
||||
|
||||
if (Platform::isFile(mGUIPath))
|
||||
if (Platform::isScriptFile(mGUIPath))
|
||||
Con::executeFile(mGUIPath, false, false);
|
||||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue