From dffb8c0dfbfc18cb4379a0eb4b7346620ecdba52 Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 2 Apr 2026 10:29:10 +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=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modal/placementShape/PlacementShapeSetting.jsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index fbf387bb..9ba4e342 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -266,15 +266,14 @@ 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] - if (firstRoof) { + roofs.forEach((roof) => { /** 모양 패턴 설정 */ - setSurfaceShapePattern(firstRoof, roofDisplay.column, false, { ...roofInfo }) - firstRoof.roofMaterial = { ...roofInfo } - drawDirectionArrow(firstRoof) - setPolygonLinesActualSize(firstRoof, true) - } + setSurfaceShapePattern(roof, roofDisplay.column, false, { ...roofInfo }) + roof.roofMaterial = { ...roofInfo } + drawDirectionArrow(roof) + setPolygonLinesActualSize(roof, true) + }) canvas.renderAll() /** 지붕면 존재 여부에 따라 메뉴 설정 */ -- 2.47.2