xushiting 2 년 전
부모
커밋
ebb8a3ded1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/graphic/Service/ElementService.js

+ 1 - 1
src/graphic/Service/ElementService.js

@@ -68,7 +68,7 @@ export class ElementService {
     this.newRoad.end = p2;
 
     let edgePoints;
-    if (road.way == Constant.oneWay) {
+    if (newRoad.way == Constant.oneWay) {
       edgePoints = mathUtil.RectangleVertex(p1, p2, newRoad.singleRoadWidth);
     } else {
       edgePoints = mathUtil.RectangleVertex(