Skip to content

Commit

Permalink
Fix type-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Oct 26, 2024
1 parent 3e24a29 commit 8303dd2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
35 changes: 18 additions & 17 deletions assets/licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@ Apache License

-----------

The following npm package may be included in this product:
The following npm packages may be included in this product:

- [email protected]
- [email protected]

This package contains the following license and notice below:
These packages each contain the following license and notice below:

Copyright (c) 2009-2011, Mozilla Foundation and contributors
All rights reserved.
Expand Down Expand Up @@ -1381,13 +1382,13 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI

The following npm package may be included in this product:

- picocolors@1.0.1
- picocolors@1.1.0

This package contains the following license and notice below:

ISC License

Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -1457,7 +1458,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The following npm package may be included in this product:

- three-mesh-bvh@0.7.8
- three-mesh-bvh@0.8.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -1781,7 +1782,7 @@ THE SOFTWARE.

The following npm package may be included in this product:

- [email protected].1
- [email protected].2

This package contains the following license and notice below:

Expand Down Expand Up @@ -1811,16 +1812,16 @@ THE SOFTWARE.

The following npm packages may be included in this product:

- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- @vue/[email protected].5
- [email protected].5
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- @vue/[email protected].7
- [email protected].7

These packages each contain the following license and notice below:

Expand Down Expand Up @@ -1974,7 +1975,7 @@ THE SOFTWARE.

The following npm package may be included in this product:

- [email protected].45
- [email protected].47

This package contains the following license and notice below:

Expand Down
2 changes: 1 addition & 1 deletion frontend/tools/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function hitToSelectionInfo(hit: Intersection<MObject3D>): SelectionInfo

function hitFaceTriangleIndices(hit: Intersection<MObject3D>): [number, number] | null {
let faceTrianglesEnd = hit?.object?.geometry?.userData?.face_triangles_end;
if (hit.faceIndex === undefined) return null;
if (!hit.faceIndex) return null;
if (!faceTrianglesEnd) { // Fallback to selecting the whole imported mesh
//console.log("No face_triangles_end found, selecting the whole mesh");
return [0, (hit.object.geometry.index ?? hit.object.geometry.attributes.position).count];
Expand Down

0 comments on commit 8303dd2

Please sign in to comment.