mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-05 21:40:33 +00:00
remove check, array case handled
This commit is contained in:
parent
cb0f6b05c6
commit
4cd9067df6
1 changed files with 0 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue