Skip to content

Commit

Permalink
Fix for Weld() Error (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmadges authored Oct 5, 2023
1 parent e6edca3 commit 566095d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/functions/src/weld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function weld(_options: WeldOptions = WELD_DEFAULTS): Transform {
for (const prim of mesh.listPrimitives()) {
weldPrimitive(doc, prim, options);

if (prim.getIndices()!.getCount() === 0) prim.dispose();
if (prim.getIndices()?.getCount() === 0) prim.dispose();
}

if (mesh.listPrimitives().length === 0) mesh.dispose();
Expand Down

0 comments on commit 566095d

Please sign in to comment.