xushiting 2 anni fa
parent
commit
10dcdf6270
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      src/graphic/Service/RoadService.js

+ 9 - 0
src/graphic/Service/RoadService.js

@@ -130,6 +130,15 @@ export default class RoadService {
       leftEdge.setEdgeParent(newRoad.vectorId);
       leftEdge.setEdgeParent(newRoad.vectorId);
       rightEdge.setEdgeParent(newRoad.vectorId);
       rightEdge.setEdgeParent(newRoad.vectorId);
     }
     }
+
+    let oldLeftEdge = dataService.getRoadEdge(road.leftEdgeId);
+    leftEdge.start = uiService.getNewPositionForPop(oldLeftEdge.start);
+    leftEdge.end = uiService.getNewPositionForPop(oldLeftEdge.end);
+
+    let oldRightEdge = dataService.getRoadEdge(road.rightEdgeId);
+    rightEdge.start = uiService.getNewPositionForPop(oldRightEdge.start);
+    rightEdge.end = uiService.getNewPositionForPop(oldRightEdge.end);
+
     newRoad.singleRoadDrivewayCount = road.singleRoadDrivewayCount;
     newRoad.singleRoadDrivewayCount = road.singleRoadDrivewayCount;
     newRoad.leftDrivewayCount = road.leftDrivewayCount;
     newRoad.leftDrivewayCount = road.leftDrivewayCount;
     newRoad.rightDrivewayCount = road.rightDrivewayCount;
     newRoad.rightDrivewayCount = road.rightDrivewayCount;