From e6af1b8645f112bb16b1d700273cb81564615d12 Mon Sep 17 00:00:00 2001 From: walterroach <37820425+walterroach@users.noreply.github.com> Date: Sat, 7 Nov 2020 22:37:47 -0600 Subject: [PATCH] more explicity waypoint namespace --- gen/aircraft.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/aircraft.py b/gen/aircraft.py index 1b8398f9..3ce1b589 100644 --- a/gen/aircraft.py +++ b/gen/aircraft.py @@ -1211,7 +1211,7 @@ class PydcsWaypointBuilder: waypoint.name = String(self.waypoint.name) tot = self.flight.flight_plan.tot_for_waypoint(self.waypoint) if tot is not None: - self.set_waypoint_tot(waypoint, tot) + waypoint = self.set_waypoint_tot(waypoint, tot) return waypoint def set_waypoint_tot(self, waypoint: MovingPoint, tot: timedelta) -> None: @@ -1220,6 +1220,7 @@ class PydcsWaypointBuilder: waypoint.ETA = int(tot.total_seconds()) waypoint.ETA_locked = True waypoint.speed_locked = False + return waypoint @classmethod def for_waypoint(cls, waypoint: FlightWaypoint, group: FlyingGroup,