mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
ensure new (foo) lines being converted are valid according to findObjectClass
This commit is contained in:
parent
c04f3ae166
commit
28dd431118
|
|
@ -235,6 +235,7 @@ function T3Dpre4ProjectImporter::beginMaterialFilesImport(%this)
|
|||
if(strIsMatchExpr("*new*(*)*", %line) && strpos(%line, "::") == -1)
|
||||
{
|
||||
%className = findObjectClass(%line, "new");
|
||||
if (%className $= "") continue;
|
||||
|
||||
if(%className !$= "Material" && %className !$= "CustomMaterial" && %className !$= "TerrainMaterial" && %className !$= "CubemapData")
|
||||
{
|
||||
|
|
@ -463,6 +464,7 @@ function T3Dpre4ProjectImporter::beginCodeFilesImport(%this)
|
|||
if(strIsMatchExpr("*new*(*)*", %line) && strpos(%line, "::") == -1)
|
||||
{
|
||||
%className = findObjectClass(%line, "new");
|
||||
if (%className $= "") continue;
|
||||
|
||||
%objectClassStack.push_back(%className);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue