dev #314

Merged
ysCha merged 2 commits from dev into dev-deploy 2025-08-29 08:39:49 +09:00
2 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,7 @@ export default function CircuitTrestleSetting({ id }) {
canvas.set({ zoom: 1 }) canvas.set({ zoom: 1 })
// roof // 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) { if (roofs.length > 0) {
// roof x, y // roof x, y

View File

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