wall bug found
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user