Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the craft's orbit is valid at all times
The delayed setting of the craft's orbit resulted in the orbit mean motion being 0 thus producing NaN when queries were made about the orbit (by kOS, Trajectories, Kerbal Engineer etc). Because kOS and Trajectories went through OrbitDriver, this would result in the craft getting deleted, potentially wreaking havoc in the code (especially if Kerbal Engineer tried to access the orbit as well) and definitely causing consternation for the player (hey, dude, where's my ship?) Fixes #163
- Loading branch information