mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix drawing of non-path waypoints.
This commit is contained in:
parent
d53fc46ffc
commit
f9f18dd38b
@ -27,7 +27,9 @@ function FlightPlanPath(props: FlightPlanProps) {
|
|||||||
if (waypoints == null) {
|
if (waypoints == null) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
const points = waypoints.map((waypoint) => waypoint.position);
|
const points = waypoints
|
||||||
|
.filter((waypoint) => waypoint.include_in_path)
|
||||||
|
.map((waypoint) => waypoint.position);
|
||||||
return (
|
return (
|
||||||
<Polyline
|
<Polyline
|
||||||
positions={points}
|
positions={points}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user