undo redo 시 지붕면 할당 안되는 현상 수정

This commit is contained in:
hyojun.choi 2026-05-07 15:21:31 +09:00
parent dd39e6f07b
commit 9de3424cdf
2 changed files with 6 additions and 1 deletions

View File

@ -227,6 +227,11 @@ export const SAVE_KEY = [
'outerLineFix',
'adjustRoofLines',
'northModuleYn',
// SK 빌드 시 hip 이 ext 끝점까지 연장된 상태임을 표시.
// undo/redo 시 보존되어야 integrateExtensionLines 가 중복 merge 를 스킵할 수 있다.
// (없으면 undo 후 지붕면 할당 시 hip 이 다시 merge 되어 corner 가 inner mesh 와 분리되며
// path-finding 이 실패 → 4 면 분할 안 됨)
'__extended',
]
export const OBJECT_PROTOTYPE = [fabric.Line.prototype, fabric.Polygon.prototype, fabric.Triangle.prototype, fabric.Group.prototype]

View File

@ -309,7 +309,7 @@ export function useUndoRedo() {
const rebuildCanvasAtoms = useCallback(() => {
if (!canvas) return
// 먼저 오브젝트 간 참조 관계 재구축
// 먼저 오브젝트 간 참조 관계 재구축 (roof.innerLines 등)
rebuildObjectGraph()
const objects = canvas.getObjects()