Ezriilc / HyperEdit

A plugin for Kerbal Space Program.
http://www.Kerbaltek.com/hyperedit
GNU General Public License v3.0
41 stars 30 forks source link

Ignored parent body relations #70

Open ofpkubi opened 4 years ago

ofpkubi commented 4 years ago

It seems that ApplyFileDefaults() goes through FlightGlobals.Bodies in one pass and applying config immediately. So if the new parent body (I have Dres) of the body (Minmus, now a moon of Dres) is later in the list (and Dres seems to be), the orbit will be faulty if the parent body GeeASL (mass) is changed.

Suggestion:

Read up all the config files and order the bodies in a tree (or at least an ordered list by depth) of the parent-child relation. Then apply the configs starting from the root.

ofpkubi commented 4 years ago

Or just run the cycle twice, as there should be no impact from the grandparent level.