From 7ecdaccb4b7d97366f419a17370c532ed0afe33f Mon Sep 17 00:00:00 2001 From: Daniel Gak Anagrov Date: Thu, 30 Oct 2025 13:09:38 +0100 Subject: [PATCH] fix(viewer-lib): LineBatch returns line count correctly now (#5725) Co-authored-by: AlexandruPopovici --- packages/viewer/src/modules/batching/LineBatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/viewer/src/modules/batching/LineBatch.ts b/packages/viewer/src/modules/batching/LineBatch.ts index 8c0557644..b3d63540d 100644 --- a/packages/viewer/src/modules/batching/LineBatch.ts +++ b/packages/viewer/src/modules/batching/LineBatch.ts @@ -98,7 +98,7 @@ export default class LineBatch implements Batch { } public getCount(): number { - return this.geometry.attributes.position.array.length / 6 + return this.geometry.attributes.instanceStart.array.length / 6 } public setBatchMaterial(material: SpeckleLineMaterial) {