Adds a sanity check so asset names cannot start with a number, which would be an invalid object name,

This commit is contained in:
Areloch 2020-10-25 12:26:42 -05:00
parent 443ca32a1d
commit f47e3f395a

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