|
@@ -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(
|