모듈 초기화시 패턴 일괄 변경, 선택 데이터 없을경우 모듈 처음 페이지로 호출
This commit is contained in:
parent
ef14d53250
commit
6bc777b2c1
@ -59,7 +59,7 @@ const Placement = forwardRef((props, refs) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//모듈 배치면 생성
|
//모듈 배치면 생성
|
||||||
if (moduleSelectionData.module.itemList.length > 1) {
|
if (isObjectNotEmpty(moduleSelectionData.module) && moduleSelectionData.module.itemList.length > 1) {
|
||||||
setIsMultiModule(true)
|
setIsMultiModule(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -407,7 +407,7 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
//지붕패턴 변경
|
//지붕패턴 변경
|
||||||
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
|
const roofs = canvas.getObjects().filter((obj) => obj.name === 'roof')
|
||||||
roofs.forEach((roof) => {
|
roofs.forEach((roof) => {
|
||||||
setSurfaceShapePattern(roof, roofDisplay.column, false) //패턴 변경
|
setSurfaceShapePattern(roof, roofDisplay.column, false, roof.roofMaterial) //패턴 변경
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user