From 98f4c4c890fef38a988088310777dac6172525f3 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 13 Feb 2025 16:47:22 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=9E=88=EB=8A=94=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=EC=97=90=EB=8A=94=20=ED=99=94=EC=82=B4?= =?UTF-8?q?=ED=91=9C=20=EC=9E=91=EC=97=85=20=EC=95=88=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/usePolygon.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index 2a024626..99845d46 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -177,6 +177,12 @@ export const usePolygon = () => { if (polygon.points.length < 3) { return } + // 모듈있으면 화살표 이미 그려져 있으므로 수행 안함 + const hasModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE).length > 0 + + if (hasModules) { + return + } const direction = polygon.direction if (!direction) { return