mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Merge pull request #371 from Areloch/AssetNameSanityCheck
Adds a sanity check so asset names cannot start with a number
This commit is contained in:
commit
1e9df5f415
1 changed files with 7 additions and 0 deletions
|
|
@ -167,6 +167,13 @@ function CreateNewAsset()
|
|||
return;
|
||||
}
|
||||
|
||||
%firstChar = getSubStr(%assetName, 0, 1);
|
||||
if(isInt(%firstChar))
|
||||
{
|
||||
toolsMessageBoxOK( "Error", "Names cannot start with a number!");
|
||||
return;
|
||||
}
|
||||
|
||||
//get the selected module data
|
||||
%moduleName = NewAssetTargetModule.getText();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue