Worker has no handler for setMaterial op
isaac-mason opened this issue · comments
While working on a PR for #327, I noticed that the material
atomic prop has an API generated for it, but as far as I can see there is no worker handler for a setMaterial
op.
Here's a quick thrown together example - one cube has its material set on creation in it's body props, another tries to set it in an effect.
https://codesandbox.io/s/missing-setmaterial-op-repro-3bhes?file=/src/index.js
Is this just a miss? I take it this API wouldn't be used often.
I'm happy to create a PR to add the missing handler to the worker if it's something we want to add 🙂
If it's something you want to use, go for it.
Sure, created a quick PR for this now: #340