-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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/Line/Points: Fix copy(). #19471
Conversation
The difference in the new implementation is the invocation of In any event, there might be use cases where code could break. E.g.
Previously, |
This is getting better. Thank you for working on it. Even so, I have long-advocated removing *** But I do not like it there either because it violates our so-called policy of requiring users to allocate memory at the application level. Plus, inexperienced users are known to call |
How about discussing a potential removal of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR an improvement, so let's merge it.
You can wait until r.118 if you want to be safe.
I would prefer that so we have more time for testing 😇 . Although I think this change should be safe. |
@mrdoob Since we are at the beginning of a new dev cycle, can we merge this PR? 😇 |
I think this is worth a try. But we will see... I think @mrdoob prefers to wait several days after a release to ensure there are no hot-fixes required. |
Yeah, I think we're good. Only |
Thanks! |
Fixed #16224.
This PR implements the approach I have outlined here: #16224 (comment)
The idea is to remove all
clone()
methods in mesh, points and line classes and always use the version ofObject3D
. Thecopy()
methods are now responsible for copying all properties.