mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 12:55:34 +00:00
zip support followup
This commit is contained in:
parent
b8eaefc21e
commit
36b31ae19d
6 changed files with 8 additions and 8 deletions
|
|
@ -121,7 +121,7 @@ void TerrainMaterialAsset::initializeAsset()
|
|||
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ void TerrainMaterialAsset::onAssetRefresh()
|
|||
{
|
||||
mScriptPath = expandAssetFilePath(mScriptFile);
|
||||
|
||||
if (Platform::isFile(mScriptPath))
|
||||
if (Torque::FS::IsScriptFile(mScriptPath))
|
||||
Con::executeFile(mScriptPath, false, false);
|
||||
|
||||
if (mMatDefinitionName != StringTable->EmptyString())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue