diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index bc63c50c..e846760b 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -1982,7 +1982,7 @@ export const usePolygon = () => { const line1 = allRoofLines[i] const line2 = allRoofLines[j] const diff = Math.abs(line1.length - line2.length) - if (diff > 0 && diff <= 1) { + if (diff > 0 && diff <= 2) { const minLength = Math.min(line1.length, line2.length) line1.setLengthByValue(minLength * 10) line2.setLengthByValue(minLength * 10)