Skip to content

Commit

Permalink
fix lane line bug
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Mar 20, 2024
1 parent e7c1f47 commit ed0d77c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadrive/component/scenario_block/scenario_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create_in_world(self):
def _construct_continuous_line(self, points, color):
for index in range(0, len(points) - 1):
node_path_list = self._construct_lane_line_segment(
points[index], points[index + 1], color, PGLineType.BROKEN
points[index], points[index + 1], color, MetaDriveType.LINE_SOLID_SINGLE_WHITE
)
self._node_path_list.extend(node_path_list)

Expand All @@ -92,7 +92,7 @@ def _construct_broken_line(self, points, color):
for index in range(0, len(points) - 1, 2):
if index + 1 < len(points) - 1:
node_path_list = self._construct_lane_line_segment(
points[index], points[index + 1], color, PGLineType.BROKEN
points[index], points[index + 1], color, MetaDriveType.LINE_BROKEN_SINGLE_WHITE
)
self._node_path_list.extend(node_path_list)

Expand Down

0 comments on commit ed0d77c

Please sign in to comment.