경사, 각도 유지

This commit is contained in:
hyojun.choi 2025-02-18 09:52:37 +09:00
parent e7aa5310ef
commit 3cdfe24b6c

View File

@ -149,8 +149,11 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
const handleRoofTypeChange = (value) => {
const selectedRoofMaterial = roofMaterials.find((roof) => roof.roofMatlCd === value)
setCurrentRoof({
...selectedRoofMaterial,
pitch: currentRoof?.pitch,
angle: currentRoof?.angle,
index: 0,
planNo: currentRoof.planNo,
roofSizeSet: String(currentRoof.roofSizeSet),