-
-
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
InstancedMesh: Support copying/cloning #19455
Conversation
So you filed a PR that you have not tested? It is based on |
I agree that the existing issues with |
The method does not work. |
Well, I followed the current pattern and it's working for me. |
Do you mind elaborating in more detail what exactly does not work? 😇 |
For example,
|
Ah yes, now I remember. You're right, the problem was the fact that Argh, we should really fix this in |
@WestLangley Do you mind reopening #16224? |
@aknoerig Can you please provide the code pattern that works for you? |
I was actually looking for a way to clone an
Since this worked well for me, I attempted to contribute back and this pull-request is my amateur attempt at that. The pull-request itself is untested, as it looked straightforward enough to me. I didn't realize that there was a philosophical discussion around cloning/copying. Sorry if my patch is actually making things worse or more confusing...! The way I understood it, is that |
@aknoerig Thank you for your PR, anyway! We do request that everyone test their PRs, however. :-) |
Closing in favor of #19471. |
In order to copy/clone an InstancedMesh succesfully, its additional properties need to be copied, too.
(This commit is untested, but hopefully straightforward enough to not warrant me to setup a full dev/test environment?)