Skip to content

Commit a3f91db

Browse files
committed
fix: solve problem when object class is not defined in tile
1 parent 325e0fa commit a3f91db

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/fragments/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/fragments",
33
"description": "Simple geometric system built on top of Three.js to display 3D BIM data efficiently.",
4-
"version": "3.0.9",
4+
"version": "3.0.10",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/fragments/src/FragmentsModels/src/virtual-model/virtual-controllers/virtual-tiles-controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,9 @@ export class VirtualTilesController {
814814
}
815815

816816
private processTileDataId(tile: TileData, material: number, lod: CurrentLod) {
817-
this._tileIdGenerator.compute(tile.objectClass);
817+
this._tileIdGenerator.compute(
818+
tile.objectClass !== undefined ? tile.objectClass : 0,
819+
);
818820
this._tileIdGenerator.compute(material);
819821
this._tileIdGenerator.compute(lod);
820822
}

resources/worker.mjs

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)