Skip to content

Commit 254a953

Browse files
committed
Minor modification.
1 parent 8894fec commit 254a953

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/engine/import/importerply.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Mesh } from '../model/mesh.js';
88
import { Triangle } from '../model/triangle.js';
99
import { ImporterBase } from './importerbase.js';
1010
import { ParametersFromLine, ReadLines, UpdateMaterialTransparency } from './importerutils.js';
11-
import { Loc, FLoc } from '../core/localization.js';
11+
import { Loc } from '../core/localization.js';
1212

1313
const PlyHeaderCheckResult =
1414
{
@@ -114,12 +114,11 @@ class PlyMaterialHandler
114114

115115
GetMaterialIndexByColor (color)
116116
{
117-
let materialName = FLoc ('Color {0}{1}{2}{3}',
118-
IntegerToHexString (color[0]),
119-
IntegerToHexString (color[1]),
120-
IntegerToHexString (color[2]),
121-
IntegerToHexString (color[3])
122-
);
117+
let materialName = 'Color ' +
118+
IntegerToHexString (color[0]) +
119+
IntegerToHexString (color[1]) +
120+
IntegerToHexString (color[2]) +
121+
IntegerToHexString (color[3]);
123122

124123
if (this.colorToMaterial.has (materialName)) {
125124
return this.colorToMaterial.get (materialName);

0 commit comments

Comments
 (0)