something works

This commit is contained in:
Davor Hrg
2021-07-27 10:36:02 +02:00
parent 3b1bb23563
commit 0b769a6524
3 changed files with 10 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ function Asset({ geometry: incomingGeo }) {
}
}, [incomingGeo])
if (!incomingGeo) return null
if (incomingGeo.children) return <primitive object={incomingGeo} />
return (
<mesh ref={mesh} scale={[1, 1, 1]}>
<bufferGeometry attach="geometry" ref={ref} />