diff --git a/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript b/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript index 9c0b1691f..92b198afe 100644 --- a/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript +++ b/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript @@ -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);