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

Mesh: Fix face indices in intersection object. #21394

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Conversation

elisee
Copy link
Contributor

@elisee elisee commented Mar 3, 2021

Hi!

I stumbled upon this { a: a, b: a, c: c, ... } error, looks like a copy-paste error introduced in #21161 cc @Mugen87.

This could be simplified to { a, b, c, ... } if Three.js is targeting a recent enough version of ECMAScript?

@Mugen87 Mugen87 added this to the r127 milestone Mar 3, 2021
@Mugen87 Mugen87 changed the title Mesh: Use correct vertex to compute normal during raycasting Mesh: Fix indices in intersection object. Mar 3, 2021
@Mugen87 Mugen87 changed the title Mesh: Fix indices in intersection object. Mesh: Fix face indices in intersection object. Mar 3, 2021
@Mugen87 Mugen87 merged commit 4a87cb5 into mrdoob:dev Mar 3, 2021
@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 3, 2021

Merging this and update the builds.

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 3, 2021

@mrdoob I think it's worth to cherry-pick this change into master. It can be confusing for users when the face index is wrong. Unfortunately, they can't workaround this on app level.

@mrdoob
Copy link
Owner

mrdoob commented Mar 3, 2021

Uh oh! Okay!

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 3, 2021

Sorry, my fault! Maybe a good idea to have a unit test for this use case^^.

@mrdoob
Copy link
Owner

mrdoob commented Mar 3, 2021

No worries! 😊

@Mugen87 Mugen87 modified the milestones: r127, r126 Mar 3, 2021
@mrdoob
Copy link
Owner

mrdoob commented Mar 3, 2021

@Mugen87 Cherry-picked and republished 👍

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