fixed issue with node positions being set to none, when a position is not provided in an update message

This commit is contained in:
bharnden 2018-10-18 16:01:42 -07:00
parent 0fc40cd96b
commit 6dbce144f9

View file

@ -583,7 +583,8 @@ class EmuSession(Session):
x, y, _ = self.location.getxyz(lat, lon, alt)
# set position and broadcast
node.setposition(x, y, None)
if None not in [x, y]:
node.setposition(x, y, None)
# broadcast updated location when using lat/lon/alt
if using_lat_lon_alt: