버튼 클릭시 오류 validator
This commit is contained in:
parent
795f5fc30f
commit
e2ce94767c
@ -1494,6 +1494,11 @@ export function useMode() {
|
||||
}
|
||||
|
||||
const applyTemplateA = () => {
|
||||
if (historyPoints.current.length === 0) {
|
||||
changeMode(canvas, Mode.EDIT)
|
||||
return
|
||||
}
|
||||
|
||||
changeMode(canvas, Mode.EDIT)
|
||||
const polygon = drawWallPolygon(false)
|
||||
// handleClear()
|
||||
@ -2940,7 +2945,11 @@ export function useMode() {
|
||||
* 템플릿 B 적용
|
||||
*/
|
||||
const applyTemplateB = () => {
|
||||
changeMode(canvas, Mode.EDIT)
|
||||
if (historyPoints.current.length === 0) {
|
||||
changeMode(canvas, Mode.EDIT)
|
||||
return
|
||||
}
|
||||
|
||||
const polygon = drawWallPolygon(false)
|
||||
const params = {
|
||||
eaves: 50,
|
||||
@ -4218,8 +4227,6 @@ export function useMode() {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('templateCenterLine', templateCenterLine)
|
||||
|
||||
if (templateCenterLine.length > 0) {
|
||||
//셀이 생성될 지붕의 흐름방향을 정함
|
||||
templateCenterLine.some((centerLine) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user