fix holes null

This commit is contained in:
wass08
2026-02-16 12:19:58 +09:00
parent e6442ad473
commit 5d17fecf94
2 changed files with 8 additions and 4 deletions
@@ -124,7 +124,8 @@ export function generateSlabGeometry(slabNode: SlabNode): THREE.BufferGeometry {
shape.closePath()
// Add holes to the shape
for (const holePolygon of slabNode.holes) {
const holes = slabNode.holes || []
for (const holePolygon of holes) {
if (holePolygon.length < 3) continue
const holePath = new THREE.Path()