Merge pull request 'dev' (#315) from dev into prd-deploy

Reviewed-on: #315
This commit is contained in:
ysCha 2025-08-29 08:40:08 +09:00
commit bcd73e4f96
2 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,7 @@ export default function CircuitTrestleSetting({ id }) {
canvas.set({ zoom: 1 })
// roof
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof' && !obj.wall)
if (roofs.length > 0) {
// roof x, y

View File

@ -27,6 +27,9 @@ export function useRoofFn() {
if (!polygon) {
return
}
if (polygon.wall) {
return
}
if (polygon.points.length < 3) {
return
}