Closed Joxtacy closed 1 year ago
Submitting as a solution to Issue #34.
This adds Material | Material[] as the type for the material property to be able to input an array of materials and not get type errors. Passing in an array of Material is allowed in Threejs so svelte-cubed should allow it as well.
Material | Material[]
material
Material
svelte-cubed
Thanks to @Myrmod for the suggested solution.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Submitting as a solution to Issue #34.
This adds
Material | Material[]
as the type for thematerial
property to be able to input an array of materials and not get type errors. Passing in an array ofMaterial
is allowed in Threejs sosvelte-cubed
should allow it as well.Thanks to @Myrmod for the suggested solution.