Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into feature/ysCha

This commit is contained in:
ysCha 2025-08-29 15:49:20 +09:00
commit 38a1907842
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
}