mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Adds handling to project importer so if incoming gui files have the %guiContent declaration at the start, it's converted to a global to comply with the script interpreter
This commit is contained in:
parent
86fbb3748b
commit
4cf40defe6
1 changed files with 6 additions and 0 deletions
|
|
@ -470,6 +470,12 @@ function T3Dpre4ProjectImporter::beginCodeFilesImport(%this)
|
||||||
|
|
||||||
%objectName = findObjectName(%line, "new");
|
%objectName = findObjectName(%line, "new");
|
||||||
|
|
||||||
|
if(strIsMatchExpr("*%guiContent*=*new*", %line))
|
||||||
|
{
|
||||||
|
%line = strReplace(%line, "%guiContent", "$guiContent");
|
||||||
|
%fileWasChanged = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(%objectName !$= "")
|
if(%objectName !$= "")
|
||||||
{
|
{
|
||||||
%sanitizedName = sanitizeString(%objectName);
|
%sanitizedName = sanitizeString(%objectName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue