배치면 그리기 - 흡착점 ON/OFF 작동 오류 수정

This commit is contained in:
hyojun.choi 2025-05-21 10:04:24 +09:00
parent 56ae730efa
commit 0295cf6c7a

View File

@ -63,6 +63,7 @@ export function usePlacementShapeDrawing(id) {
const verticalHorizontalMode = useRecoilValue(verticalHorizontalModeState) const verticalHorizontalMode = useRecoilValue(verticalHorizontalModeState)
const adsorptionRange = useRecoilValue(adsorptionRangeState) const adsorptionRange = useRecoilValue(adsorptionRangeState)
const adsorptionPointMode = useRecoilValue(adsorptionPointModeState)
const length1Ref = useRef(null) const length1Ref = useRef(null)
const length2Ref = useRef(null) const length2Ref = useRef(null)
@ -100,7 +101,7 @@ export function usePlacementShapeDrawing(id) {
initEvent() initEvent()
handleSelectableObjects(['lineGrid', 'tempGrid', 'adsorptionPoint'], true) handleSelectableObjects(['lineGrid', 'tempGrid', 'adsorptionPoint'], true)
} }
}, [verticalHorizontalMode, points, adsorptionRange]) }, [verticalHorizontalMode, points, adsorptionRange, adsorptionPointMode])
useEffect(() => { useEffect(() => {
setPoints([]) setPoints([])