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(