From b7ba6d8fc17ab599144e93350d8b821922ee7796 Mon Sep 17 00:00:00 2001 From: ysCha Date: Fri, 3 Apr 2026 09:12:43 +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 --- src/hooks/module/useTrestle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index fad9a810..411fc118 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -799,7 +799,7 @@ export const useTrestle = () => { const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId) const { directionText, roofMaterial, moduleCompass, surfaceCompass } = parent const slope = Number(roofMaterial.pitch) - const angle = Number(roofMaterial.angle) + const angle = Number(roofMaterial.angle) || getDegreeByChon(slope) const roofMaterialIndex = parent.roofMaterial.index const { nameJp: roofMaterialIdMulti } = roofMaterial const moduleSelection = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex) @@ -1123,7 +1123,7 @@ export const useTrestle = () => { return } const roof = canvas.getObjects().find((obj) => obj.id === surface.parentId) - const degree = getDegreeByChon(roof.roofMaterial.pitch) + const degree = Number(roof.roofMaterial.angle) || getDegreeByChon(roof.roofMaterial.pitch) rackIntvlPct = rackIntvlPct === 0 ? 1 : rackIntvlPct // 0인 경우 1로 변경 rackIntvlPct = 100 / rackIntvlPct // 퍼센트로 변경 const moduleLeft = lastX ?? left