Skip to content

Commit

Permalink
fix: correct importer fragmentsgroup data error
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Jul 13, 2024
1 parent ac8458b commit 4ec3e3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fragments/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/fragments",
"description": "Simple geometric system built on top of Three.js to display 3D BIM data efficiently.",
"version": "2.1.1",
"version": "2.1.2",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
4 changes: 3 additions & 1 deletion packages/fragments/src/parsers/parser-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ export class ParserV2 implements FragmentParser {
for (let i = 0; i < indices.length; i++) {
const expressID = ids[i];
const currentIndex = indices[i];
const nextIndex = indices[i + 1] || array.length;

const next = indices[i + 1];
const nextIndex = next === undefined ? array.length : next;

const keys: number[] = [];
for (let j = currentIndex; j < nextIndex; j++) {
Expand Down

0 comments on commit 4ec3e3e

Please sign in to comment.