remove check, array case handled

This commit is contained in:
Brian Beck 2025-11-13 23:53:51 -08:00
parent cb0f6b05c6
commit 4cd9067df6

View file

@ -41,9 +41,6 @@ function InteriorTexture({ material }: { material: Material }) {
}
function InteriorMesh({ node }: { node: Mesh }) {
if (Array.isArray(node.material)) {
throw new Error("Unexpected multi-material node");
}
return (
<mesh geometry={node.geometry} castShadow receiveShadow>
{node.material ? (