Compare commits

..

No commits in common. "5a64ff945aa470a52328838a2afd0d82a1c610de" and "f08b3cef5b9245dc83a5472fc1745e071b2080e1" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -1955,7 +1955,7 @@ export const usePolygon = () => {
forceUpdate = true
}
/*if (polygon.from !== 'surface') {
if (polygon.from !== 'surface') {
// createdRoofs들의 모든 lines를 확인해서 length값이 1이하인 차이가 있으면 통일 시킨다.
const allRoofs = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF)
const allRoofLines = allRoofs.flatMap((roof) => roof.lines)
@ -1978,7 +1978,7 @@ export const usePolygon = () => {
}
}
}
}*/
}
polygon.lines.forEach((line, index) => {
if (line.attributes.isCalculated && !forceUpdate) {

View File

@ -470,9 +470,7 @@ export const skeletonBuilder = (roofId, canvas, textMode) => {
//마루이동
if (moveFlowLine !== 0 || moveUpDown !== 0) {
const movedPoints = movingLineFromSkeleton(roofId, canvas)
roofLineContactPoints = movedPoints
changRoofLinePoints = movedPoints
roofLineContactPoints = movingLineFromSkeleton(roofId, canvas)
}
// changRoofLinePoints 좌표를 roof.skeletonPoints에 저장 (원본 roof.points는 유지)