mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +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
|
|
@ -470,6 +470,12 @@ function T3Dpre4ProjectImporter::beginCodeFilesImport(%this)
|
|||
|
||||
%objectName = findObjectName(%line, "new");
|
||||
|
||||
if(strIsMatchExpr("*%guiContent*=*new*", %line))
|
||||
{
|
||||
%line = strReplace(%line, "%guiContent", "$guiContent");
|
||||
%fileWasChanged = true;
|
||||
}
|
||||
|
||||
if(%objectName !$= "")
|
||||
{
|
||||
%sanitizedName = sanitizeString(%objectName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue