xushiting 2 anni fa
parent
commit
ebb8a3ded1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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(