Open behrisch opened 4 months ago
Thanks for the quick fix! The problem is still not solved entirely at least concerning netedit. If I start with a configuration of 3 normal lanes + 1 green verge on the left connected to 5 lanes, press F5 and then make the third lane a green verge as well (so change to 2+2) and press F5 again I still get the situation above. This may be expected because netedit should keep as many connections as possible if no explicit reset is requested, but pressing F5 a second time still leeds to the intermingled situation in the second image above.
The problem is currently triggered when the connections have the status "guessed" (LANES2LANES_RECHECK
). Then NBEdge::recheckLanes
removes all the useless connections from green verges and afterwards tries to fill the gaps again.
To trigger this in a loaded network, "reset connections" can be used before transforming a lane into a green verge.
The improvement from bdb959b is that another "reset connections" fixes the mess.
Still creates a problem if green verge is created by setting lane allow/disallow in inspect mode.
Disallowing everything on the leftmost lane, removes all connections from that lane without replacing them with connections from others:
Unfortunately, recalculating the junction (pressing F5) for a second time makes only things worse: