Merge pull request '[1480]사의 각도 설정을 "각도"로 했을 때 발생하는 문제' (#752) from dev into dev-deploy
Reviewed-on: #752
This commit is contained in:
commit
e9b46be69a
@ -799,6 +799,7 @@ export const useTrestle = () => {
|
|||||||
const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
const parent = canvas.getObjects().find((obj) => obj.id === surface.parentId)
|
||||||
const { directionText, roofMaterial, moduleCompass, surfaceCompass } = parent
|
const { directionText, roofMaterial, moduleCompass, surfaceCompass } = parent
|
||||||
const slope = Number(roofMaterial.pitch)
|
const slope = Number(roofMaterial.pitch)
|
||||||
|
const angle = Number(roofMaterial.angle)
|
||||||
const roofMaterialIndex = parent.roofMaterial.index
|
const roofMaterialIndex = parent.roofMaterial.index
|
||||||
const { nameJp: roofMaterialIdMulti } = roofMaterial
|
const { nameJp: roofMaterialIdMulti } = roofMaterial
|
||||||
const moduleSelection = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex)
|
const moduleSelection = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex)
|
||||||
@ -836,7 +837,7 @@ export const useTrestle = () => {
|
|||||||
supportMeaker,
|
supportMeaker,
|
||||||
slope: +roofSizeSet === 3 ? 0 : slope,
|
slope: +roofSizeSet === 3 ? 0 : slope,
|
||||||
classType: currentAngleType === 'slope' ? '0' : '1',
|
classType: currentAngleType === 'slope' ? '0' : '1',
|
||||||
angle: +roofSizeSet === 3 ? 0 : getDegreeByChon(slope),
|
angle: +roofSizeSet === 3 ? 0 : angle,
|
||||||
azimuth: getAzimuth(parent),
|
azimuth: getAzimuth(parent),
|
||||||
moduleList,
|
moduleList,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user