From 0295cf6c7aa0664b301abb1488b1a3187ec4ed7f Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 21 May 2025 10:04:24 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=B9=98=EB=A9=B4=20=EA=B7=B8?= =?UTF-8?q?=EB=A6=AC=EA=B8=B0=20-=20=ED=9D=A1=EC=B0=A9=EC=A0=90=20ON/OFF?= =?UTF-8?q?=20=EC=9E=91=EB=8F=99=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/surface/usePlacementShapeDrawing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/surface/usePlacementShapeDrawing.js b/src/hooks/surface/usePlacementShapeDrawing.js index 0d493fde..23602d5a 100644 --- a/src/hooks/surface/usePlacementShapeDrawing.js +++ b/src/hooks/surface/usePlacementShapeDrawing.js @@ -63,6 +63,7 @@ export function usePlacementShapeDrawing(id) { const verticalHorizontalMode = useRecoilValue(verticalHorizontalModeState) const adsorptionRange = useRecoilValue(adsorptionRangeState) + const adsorptionPointMode = useRecoilValue(adsorptionPointModeState) const length1Ref = useRef(null) const length2Ref = useRef(null) @@ -100,7 +101,7 @@ export function usePlacementShapeDrawing(id) { initEvent() handleSelectableObjects(['lineGrid', 'tempGrid', 'adsorptionPoint'], true) } - }, [verticalHorizontalMode, points, adsorptionRange]) + }, [verticalHorizontalMode, points, adsorptionRange, adsorptionPointMode]) useEffect(() => { setPoints([])