diff --git a/src/hooks/roofcover/useAuxiliaryDrawing.js b/src/hooks/roofcover/useAuxiliaryDrawing.js index df76adeb..ed16ae58 100644 --- a/src/hooks/roofcover/useAuxiliaryDrawing.js +++ b/src/hooks/roofcover/useAuxiliaryDrawing.js @@ -883,7 +883,7 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) { return } - cutAuxiliary() + // cutAuxiliary() const roofBases = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF) diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index feea596b..86c9a2b9 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -845,12 +845,14 @@ export const usePolygon = () => { polygonLines.forEach((polygonLine) => { if (checkLineOverlap(innerLine, polygonLine)) { // innerLine의 type을 polygonLine의 type으로 변경 - if (polygonLine.attributes?.type && innerLine.attributes) { + if (innerLine.attributes && polygonLine.attributes.type) { // polygonLine.need = false innerLine.attributes.planeSize = innerLine.attributes.planeSize ?? polygonLine.attributes.planeSize innerLine.attributes.actualSize = innerLine.attributes.actualSize ?? polygonLine.attributes.actualSize + innerLine.attributes.type = polygonLine.attributes.type innerLine.direction = polygonLine.direction innerLine.attributes.isStart = true + innerLine.parentLine = polygonLine } } })