diff --git a/Source/BuildControl.cs b/Source/BuildControl.cs index 7b7e7642..dc60c56d 100644 --- a/Source/BuildControl.cs +++ b/Source/BuildControl.cs @@ -1158,6 +1158,10 @@ public CostReport getBuildCost (ConfigNode craft, string craftText = null) lockedParts = true; } GameObject ro = ship.parts[0].localRoot.gameObject; + var od = ro.GetComponent () ?? ro.AddComponent (); + od.orbit = new Orbit(builder.vessel.orbit); + + EL_Utils.dumpxform (ro.transform, true); Vessel craftVessel = ro.AddComponent(); craftVessel.vesselName = "EL craftVessel - " + craft.GetValue ("ship"); craftVessel.Initialize (true);