mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-01-19 20:25:01 +00:00
remove check, array case handled
This commit is contained in:
parent
cb0f6b05c6
commit
4cd9067df6
|
|
@ -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 ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue