wall bug found

This commit is contained in:
2025-08-23 17:44:19 +05:30
parent 405d6d7eae
commit e9e1d80b7a

View File

@@ -81,7 +81,7 @@ function Wall({ wall }: { readonly wall: Wall }) {
map: wall.outsideMaterial === 'Default Material' ? defaultWallTexture : material1WallTexture, map: wall.outsideMaterial === 'Default Material' ? defaultWallTexture : material1WallTexture,
}), }),
]; ];
}, [defaultWallTexture, material1WallTexture, wall]); }, [defaultWallTexture, material1WallTexture, wall, visible]);
const geometry = useMemo(() => new THREE.BoxGeometry(wallLength, wall.wallHeight, wall.wallThickness), [wallLength, wall.wallHeight, wall.wallThickness]); const geometry = useMemo(() => new THREE.BoxGeometry(wallLength, wall.wallHeight, wall.wallThickness), [wallLength, wall.wallHeight, wall.wallThickness]);
@@ -116,7 +116,7 @@ function Wall({ wall }: { readonly wall: Wall }) {
key={wall.wallUuid} key={wall.wallUuid}
userData={wall} userData={wall}
> >
{(assets.length > 0 || (walls[0].wallUuid === wall.wallUuid && wallAssets.length > 0)) && visible ? {(assets.length > 0 || (walls[0].wallUuid === wall.wallUuid && wallAssets.length > 0)) ?
<Base <Base
castShadow castShadow
receiveShadow receiveShadow