지붕형상 수동 설정 수정

This commit is contained in:
hyojun.choi 2024-12-23 14:23:17 +09:00
parent d97f763241
commit aa0de2549e

View File

@ -136,6 +136,10 @@ export function useRoofShapePassivitySetting(id) {
const index = lines.findIndex((line) => line === selectedLine) const index = lines.findIndex((line) => line === selectedLine)
const nextLine = lines[index + 1] || lines[0] const nextLine = lines[index + 1] || lines[0]
if (nextLine.attributes.isFixed) {
canvas.discardActiveObject()
return
}
canvas.setActiveObject(nextLine) canvas.setActiveObject(nextLine)
} }
@ -166,7 +170,7 @@ export function useRoofShapePassivitySetting(id) {
} }
currentLineRef.current.set({ currentLineRef.current.set({
attributes, attributes: { ...attributes, isFixed: true },
}) })
history.current.push(currentLineRef.current) history.current.push(currentLineRef.current)