Skip to content

Commit

Permalink
Updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Vin committed Jul 11, 2024
1 parent 78abab3 commit c61cf79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scenic/formats/opendrive/xodr_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,15 +1199,15 @@ def calculate_geometry(self, num, calc_gap=False, calc_intersect=True):
s_id = t_road.successor

if t_road.predecessor is not None and t_id != p_id:
# Find successor roads
# Find predecessor roads
if p_id in self.roads:
p_roads = [self.roads[p_id]]
elif p_id in self.junctions:
p_roads = [self.roads[p_id] for p_id in self.junctions[p_id].paths]
else:
assert False

# Trim all successor roads
# Trim all predecessor roads
for p_road in p_roads:
# Trim lanes and lane sections
p_road.lane_polys = [
Expand Down

0 comments on commit c61cf79

Please sign in to comment.