Minor modification.

This commit is contained in:
kovacsv 2024-01-27 20:18:57 +01:00
parent 8894feca9e
commit 254a9531b8

View File

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