index가 잘못들어옴
This commit is contained in:
parent
aa1e71b91f
commit
d58812ef1c
@ -745,10 +745,10 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
|
|||||||
const movedLines = []
|
const movedLines = []
|
||||||
|
|
||||||
// 조건에 맞는 라인들만 필터링
|
// 조건에 맞는 라인들만 필터링
|
||||||
const validWallLines = wallLines.filter((wallLine, index) => wallLine.idx - 1 === index);
|
//const validWallLines = wallLines.filter((wallLine, index) => wallLine.idx - 1 === index);
|
||||||
|
|
||||||
|
|
||||||
validWallLines.forEach((wallLine, index) => {
|
wallLines.forEach((wallLine, index) => {
|
||||||
|
|
||||||
const originalIndex = wallLines.indexOf(wallLine);
|
const originalIndex = wallLines.indexOf(wallLine);
|
||||||
const roofLine = sortRoofLines[originalIndex];
|
const roofLine = sortRoofLines[originalIndex];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user