Minor modification.
This commit is contained in:
parent
8894feca9e
commit
254a9531b8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user