xushiting 2 năm trước cách đây
mục cha
commit
ebb8a3ded1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(