Merge pull request #371 from Areloch/AssetNameSanityCheck

Adds a sanity check so asset names cannot start with a number
This commit is contained in:
Brian Roberts 2020-10-25 13:04:35 -05:00 committed by GitHub
commit 1e9df5f415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();