contextmenu 지붕재 변경 시 일반 지붕면 할당이랑 같은 기능 하도록 수정

This commit is contained in:
hyojun.choi 2025-01-02 11:35:17 +09:00
parent a7365b98e4
commit ca85f92ccc

View File

@ -108,6 +108,14 @@ export function useRoofAllocationSetting(id) {
// 지붕재 오른쪽 마우스 클릭 후 단일로 지붕재 변경 필요한 경우
const handleSaveContext = () => {
setBasicSetting((prev) => {
return {
...prev,
selectedRoofMaterial: currentRoofList.find((roof) => roof.selected),
}
})
setRoofList(currentRoofList)
const selectedRoofMaterial = currentRoofList.find((roof) => roof.selected)
setSurfaceShapePattern(currentObject, roofDisplay.column, false, selectedRoofMaterial)
closeAll()