From 4a270ba57e06ef3edec35e936a8db2431d59a026 Mon Sep 17 00:00:00 2001 From: ysCha Date: Mon, 30 Mar 2026 18:49:06 +0900 Subject: [PATCH] =?UTF-8?q?[1480]=EC=82=AC=EC=9D=98=20=EA=B0=81=EB=8F=84?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=EC=9D=84=20"=EA=B0=81=EB=8F=84"=EB=A1=9C?= =?UTF-8?q?=20=ED=96=88=EC=9D=84=20=EB=95=8C=20=EB=B0=9C=EC=83=9D=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modal/placementShape/PlacementShapeSetting.jsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 9ba4e342..fbf387bb 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -266,14 +266,15 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla }, { skipSideEffects: true }) const roofs = canvas.getObjects().filter((obj) => obj.roofMaterial?.index === 0) + const firstRoof = roofs[0] - roofs.forEach((roof) => { + if (firstRoof) { /** 모양 패턴 설정 */ - setSurfaceShapePattern(roof, roofDisplay.column, false, { ...roofInfo }) - roof.roofMaterial = { ...roofInfo } - drawDirectionArrow(roof) - setPolygonLinesActualSize(roof, true) - }) + setSurfaceShapePattern(firstRoof, roofDisplay.column, false, { ...roofInfo }) + firstRoof.roofMaterial = { ...roofInfo } + drawDirectionArrow(firstRoof) + setPolygonLinesActualSize(firstRoof, true) + } canvas.renderAll() /** 지붕면 존재 여부에 따라 메뉴 설정 */ -- 2.47.2