-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
Copy .onBeforeCompile in Material.copy() #15464
Conversation
Per #14009 (comment), I'm not sure about this change:
I'm willing to be convinced otherwise... I feel less strongly about that change lately. And in particular I want to be clear that I'm not saying this should be blocked until NodeMaterial is finished. Setting NodeMaterial aside, does it seem confusing for copy/clone vs serialization to have different results? And in particular, what specific issues would this fix? Support cloning for glTF spec/gloss materials (which #14099 also does) and eventually the |
Maybe yes. I think what we should first do is to make clear the
(The above is the background of question #11475 (comment)) My understanding is we go with 2. because the purpose of /cc @mrdoob |
What i've noticed about
I'd very much vote for this. |
Actually, i think this might still be relevant (deleted it once 😄 ) I think you might be able to create materials in such a way to run into this issue. |
I vote 2 too. |
Can you help me to add a note to the doc? Please correct my writing. Does "extra work" sound vague?
|
Docs updated via #17672 |
This PR add missing
.onBeforeCompile
copying in Materia.copy.With this change, Materials hacked with
.onBeforeCompile()
can be copied/cloned.