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

BufferGeometry: Fix clone(). #22566

Merged
merged 1 commit into from
Sep 22, 2021
Merged

BufferGeometry: Fix clone(). #22566

merged 1 commit into from
Sep 22, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Sep 22, 2021

Related issue: Fixed #8522.

Description

This PR fixes a long-standing issue in the engine. If you clone now a BoxGeometry, you actually get a new object of type BoxGeometry (and not BufferGeometry). The previous behavior produces an unexpected result and was confusing.

@mrdoob mrdoob added this to the r133 milestone Sep 22, 2021
@mrdoob
Copy link
Owner

mrdoob commented Sep 22, 2021

Excellent!

@mrdoob mrdoob merged commit f2e342e into mrdoob:dev Sep 22, 2021
@mrdoob
Copy link
Owner

mrdoob commented Sep 22, 2021

Thanks!

@joshuaellis joshuaellis mentioned this pull request Oct 3, 2021
23 tasks
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.

Clone cylinderGeometry Creates Geometry
2 participants