invalidate start and destination when resetting the vertices

- the reference for the projection may change which will cause start and
destination positions to be invalid
- the position of the destination in the graph node may not be correct anymore

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2026-04-29 11:09:59 +03:00
parent a77093f0e7
commit 6871caa6f9
@@ -206,6 +206,11 @@ bool GeofenceAvoidancePlanner::update_vertices(GeofenceInterface &geofence, floa
}
update_distances_between_vertices(geofence);
// invalidate start and end to make sure they are refreshed
_start_healthy = false;
_destination_healthy = false;
perf_end(_setup_perf);
return true;
}