fix(viewer-lib): Fixed an issue where mismatched vertex color counts were still attempted to batch together resulting in errors. (#3809)

Now if the number of vertex colors does not match the number of vertices we just ignore colors alltogether
This commit is contained in:
Alexandru Popovici
2025-01-14 12:52:26 +02:00
committed by GitHub
parent ec28358e58
commit 8aadfc9be9
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -459,12 +459,14 @@ const getStream = () => {
// 'https://speckle.xyz/streams/27e89d0ad6/commits/5ed4b74252'
//Gingerbread
'https://latest.speckle.systems/projects/387050bffe/models/48f7eb26fb'
// 'https://latest.speckle.systems/projects/387050bffe/models/48f7eb26fb'
// DUI3 Mesh Colors
// 'https://app.speckle.systems/projects/93200a735d/models/cbacd3eaeb@344a397239'
// Instance toilets
// 'https://app.speckle.systems/projects/e89b61b65c/models/2a0995f124'
'https://latest.speckle.systems/projects/3fe1880c36/models/65bb4287a8'
)
}
@@ -286,9 +286,9 @@ export class SpeckleGeometryConverter extends GeometryConverter {
Logger.warn(
`Mesh (id ${node.raw.id}) colours are mismatched with vertice counts. The number of colours must equal the number of vertices.`
)
}
} else
/** We want the colors in linear space */
colors = this.unpackColors(colorsRaw, true)
colors = this.unpackColors(colorsRaw, true)
}
return {