Skip to content

Commit

Permalink
fix: add geometry id after start creating geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Dec 30, 2023
1 parent 72d668d commit 9d3f601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bim-fragment",
"version": "1.2.5",
"version": "1.2.6",
"description": "3D BIM Geometry API",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion resources/openbim-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -12451,8 +12451,8 @@ class StreamSerializer {
const indexVector = G.createIndexVector(builder, index);
const posVector = G.createPositionVector(builder, position);
const norVector = G.createNormalVector(builder, normal);
G.addGeometryId(builder, idStr);
G.startStreamedGeometry(builder);
G.addGeometryId(builder, idStr);
G.addIndex(builder, indexVector);
G.addPosition(builder, posVector);
G.addNormal(builder, norVector);
Expand Down
2 changes: 1 addition & 1 deletion src/stream-serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class StreamSerializer {
const posVector = G.createPositionVector(builder, position);
const norVector = G.createNormalVector(builder, normal);

G.addGeometryId(builder, idStr);
G.startStreamedGeometry(builder);
G.addGeometryId(builder, idStr);
G.addIndex(builder, indexVector);
G.addPosition(builder, posVector);
G.addNormal(builder, norVector);
Expand Down

0 comments on commit 9d3f601

Please sign in to comment.