solidjs-community / solid-three

port of @react-three/fiber for solid
https://solid-three.vercel.app
123 stars 12 forks source link

Switch/Show of mesh as child of Canvas does not work #11

Open vorth opened 1 year ago

vorth commented 1 year ago

https://codesandbox.io/p/sandbox/solid-three-with-switch-forked-d1jmmf?file=%2Fsrc%2FApp.jsx%3A41%2C7

Change the fragment (lines 18 & 41) to a <group>...</group>, and it will start working. The Switch doesn't work unless the parent is a valid Object3D, or something of that nature.

I have seen the same issue with <Show>.