Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect invalid hotspots #15865

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Detect invalid hotspots #15865

merged 2 commits into from
Nov 21, 2024

Conversation

ryantrem
Copy link
Member

There was previously guards in place to detect when a hotspot vertex index was out of range, and so it would just return NaN position/normal data. This change just makes sure the core hotspot functions return false when an index is out of range, and then the viewer checks the return value. Annotation elements associated with invalid hotspots are not displayed (previous logic).

@ryantrem ryantrem enabled auto-merge (squash) November 21, 2024 00:48
@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

@bjsplat
Copy link
Collaborator

bjsplat commented Nov 21, 2024

@ryantrem ryantrem merged commit c45d411 into BabylonJS:master Nov 21, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants