dev #320

Merged
ysCha merged 7 commits from dev into prd-deploy 2025-09-02 18:39:34 +09:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 38a1907842 - Show all commits

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
}