Compare commits

..

No commits in common. "e9b46be69a58f60a6177da5a3a5869057f17a563" and "b4bf1a86405a049e2a52b0ae88e53128cdc717d5" have entirely different histories.

View File

@ -799,7 +799,6 @@ 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)
@ -837,7 +836,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 : angle, angle: +roofSizeSet === 3 ? 0 : getDegreeByChon(slope),
azimuth: getAzimuth(parent), azimuth: getAzimuth(parent),
moduleList, moduleList,
} }