Skip to content

Commit c08d5ac

Browse files
committed
fix: add guard for circular extrusions
1 parent a3f91db commit c08d5ac

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
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.10",
4+
"version": "3.0.11",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/fragments/src/FragmentsModels/src/virtual-model/virtual-meshes/virtual-circle-extrusion-manager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export class VirtualCircleExtrusionManager extends VirtualMeshManager {
8585
createIfVoid: boolean,
8686
meshes: TileData[],
8787
) {
88+
if (meshes.length === 0) {
89+
return;
90+
}
8891
const meshesExist = Boolean(meshes.length);
8992
const isVoid = !meshes[0].positionBuffer;
9093
const shouldCreate = createIfVoid && isVoid && meshesExist;

resources/worker.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)