@@ -8,7 +8,7 @@ import { Mesh } from '../model/mesh.js';
8
8
import { Triangle } from '../model/triangle.js' ;
9
9
import { ImporterBase } from './importerbase.js' ;
10
10
import { ParametersFromLine , ReadLines , UpdateMaterialTransparency } from './importerutils.js' ;
11
- import { Loc , FLoc } from '../core/localization.js' ;
11
+ import { Loc } from '../core/localization.js' ;
12
12
13
13
const PlyHeaderCheckResult =
14
14
{
@@ -114,12 +114,11 @@ class PlyMaterialHandler
114
114
115
115
GetMaterialIndexByColor ( color )
116
116
{
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 ] ) ;
123
122
124
123
if ( this . colorToMaterial . has ( materialName ) ) {
125
124
return this . colorToMaterial . get ( materialName ) ;
0 commit comments