mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-17 18:35:24 +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
|
|
@ -136,7 +136,7 @@ void PostEffectAsset::initializeAsset()
|
|||
mHLSLShaderPath = expandAssetFilePath(mHLSLShaderFile);
|
||||
mGLSLShaderPath = expandAssetFilePath(mGLSLShaderFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ void PostEffectAsset::onAssetRefresh()
|
|||
mHLSLShaderPath = expandAssetFilePath(mHLSLShaderFile);
|
||||
mGLSLShaderPath = expandAssetFilePath(mGLSLShaderFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Platform::isScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue