지붕형상 수동 설정 수정
This commit is contained in:
parent
d97f763241
commit
aa0de2549e
@ -136,6 +136,10 @@ export function useRoofShapePassivitySetting(id) {
|
||||
const index = lines.findIndex((line) => line === selectedLine)
|
||||
|
||||
const nextLine = lines[index + 1] || lines[0]
|
||||
if (nextLine.attributes.isFixed) {
|
||||
canvas.discardActiveObject()
|
||||
return
|
||||
}
|
||||
canvas.setActiveObject(nextLine)
|
||||
}
|
||||
|
||||
@ -166,7 +170,7 @@ export function useRoofShapePassivitySetting(id) {
|
||||
}
|
||||
|
||||
currentLineRef.current.set({
|
||||
attributes,
|
||||
attributes: { ...attributes, isFixed: true },
|
||||
})
|
||||
|
||||
history.current.push(currentLineRef.current)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user