mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
ui: fix wrong path color indexing (#33350)
* fix * clean up * clean up * clean up old-commit-hash: d8c982242118b25ef2ad0dc25113907a53669593
This commit is contained in:
@@ -177,7 +177,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
||||
|
||||
for (int i = 0; i < max_len; ++i) {
|
||||
// Some points are out of frame
|
||||
int track_idx = (scene.track_vertices.length() / 2) - i; // flip idx to start from top
|
||||
int track_idx = max_len - i - 1; // flip idx to start from bottom right
|
||||
if (scene.track_vertices[track_idx].y() < 0 || scene.track_vertices[track_idx].y() > height()) continue;
|
||||
|
||||
// Flip so 0 is bottom of frame
|
||||
|
||||
Reference in New Issue
Block a user