Compare commits

..

No commits in common. "bcd73e4f96970e2a3a46587edf0a69f0cded3a6e" and "7846d729c85d104e31b6bb83286205dbfc40c0e8" have entirely different histories.

2 changed files with 1 additions and 4 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' && !obj.wall)
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
if (roofs.length > 0) {
// roof x, y

View File

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