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

Bug fix in toNonIndexed - normalized #19464

Merged
merged 2 commits into from May 26, 2020
Merged

Conversation

bergden-resonai
Copy link
Contributor

When using a normalized BufferAttribute, toNonIndexed loses it.

When using a normalized buffer attribute toNonIndexed loses it.
Mugen87
Mugen87 previously approved these changes May 26, 2020
src/core/BufferGeometry.js Outdated Show resolved Hide resolved
@bergden-resonai
Copy link
Contributor Author

I fixed this because it happened to affect me, but there are other potential bugs here with any other fields of the BufferAttribute that might be set:
https://threejs.org/docs/#api/en/core/BufferAttribute.onUploadCallback

I'm not sure these should be copied from the original after toNonIndexed is called, but the constructor arguments I think should be copied.

@Mugen87

@Mugen87
Copy link
Collaborator

Mugen87 commented May 26, 2020

but the constructor arguments I think should be copied.

Definitely!

@mrdoob mrdoob added this to the r117 milestone May 26, 2020
@mrdoob mrdoob merged commit 4869ef0 into mrdoob:dev May 26, 2020
@mrdoob
Copy link
Owner

mrdoob commented May 26, 2020

Thanks!

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.

None yet

4 participants