mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-15 16:34:49 +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 }) {
|
function InteriorMesh({ node }: { node: Mesh }) {
|
||||||
if (Array.isArray(node.material)) {
|
|
||||||
throw new Error("Unexpected multi-material node");
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<mesh geometry={node.geometry} castShadow receiveShadow>
|
<mesh geometry={node.geometry} castShadow receiveShadow>
|
||||||
{node.material ? (
|
{node.material ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue