diff --git a/source/engine/import/importerply.js b/source/engine/import/importerply.js index 4d3420c..8218a06 100644 --- a/source/engine/import/importerply.js +++ b/source/engine/import/importerply.js @@ -8,7 +8,7 @@ import { Mesh } from '../model/mesh.js'; import { Triangle } from '../model/triangle.js'; import { ImporterBase } from './importerbase.js'; import { ParametersFromLine, ReadLines, UpdateMaterialTransparency } from './importerutils.js'; -import { Loc, FLoc } from '../core/localization.js'; +import { Loc } from '../core/localization.js'; const PlyHeaderCheckResult = { @@ -114,12 +114,11 @@ class PlyMaterialHandler GetMaterialIndexByColor (color) { - let materialName = FLoc ('Color {0}{1}{2}{3}', - IntegerToHexString (color[0]), - IntegerToHexString (color[1]), - IntegerToHexString (color[2]), - IntegerToHexString (color[3]) - ); + let materialName = 'Color ' + + IntegerToHexString (color[0]) + + IntegerToHexString (color[1]) + + IntegerToHexString (color[2]) + + IntegerToHexString (color[3]); if (this.colorToMaterial.has (materialName)) { return this.colorToMaterial.get (materialName);