bug fix wallAsset

This commit is contained in:
2025-08-23 17:52:15 +05:30
parent e9e1d80b7a
commit 67b942ac16

View File

@@ -121,7 +121,7 @@ function Wall({ wall }: { readonly wall: Wall }) {
castShadow
receiveShadow
ref={meshRef}
geometry={geometry}
geometry={visible ? geometry : new THREE.BoxGeometry(0, 0)}
position={[centerX, centerY, centerZ]}
rotation={[0, -angle, 0]}
userData={wall}