Skip to content

Commit

Permalink
[JuPedSim] Solved a rendering issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoueraud87 authored and behrisch committed Mar 22, 2024
1 parent d1cc949 commit b5a4081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/transportables/MSPModel_JuPedSim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ MSPModel_JuPedSim::execute(SUMOTime time) {
}
}
if (allStoppedTrainIDs != myAllStoppedTrainIDs) {
removePolygonFromDrawing(PEDESTRIAN_NETWORK_CARRIAGES_AND_RAMPS_ID);
if (!allStoppedTrainIDs.empty()) {
std::vector<GEOSGeometry*> carriagePolygons;
std::vector<GEOSGeometry*> rampPolygons;
Expand Down Expand Up @@ -485,7 +486,6 @@ MSPModel_JuPedSim::execute(SUMOTime time) {
}
} else {
JPS_Simulation_SwitchGeometry(myJPSSimulation, myJPSGeometry, nullptr, nullptr);
removePolygonFromDrawing(PEDESTRIAN_NETWORK_CARRIAGES_AND_RAMPS_ID);
preparePolygonForDrawing(myGEOSPedestrianNetworkLargestComponent, PEDESTRIAN_NETWORK_ID, PEDESTRIAN_NETWORK_COLOR);
}
myAllStoppedTrainIDs = allStoppedTrainIDs;
Expand Down

0 comments on commit b5a4081

Please sign in to comment.