Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ba3c0d8cbbab
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5157d1e7c4e6
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 29, 2019

  1. Copy the full SHA
    993268a View commit details
  2. Merge pull request #2256 from pleroy/2239b

    Restore the behaviour prior to #2254 for the target vessel
    pleroy authored Jul 29, 2019
    Copy the full SHA
    5157d1e View commit details
Showing with 7 additions and 0 deletions.
  1. +7 −0 ksp_plugin_adapter/ksp_plugin_adapter.cs
7 changes: 7 additions & 0 deletions ksp_plugin_adapter/ksp_plugin_adapter.cs
Original file line number Diff line number Diff line change
@@ -317,6 +317,13 @@ private void UpdatePredictions() {
FlightGlobals.fetch.VesselTarget?.GetVessel()?.id.ToString();
if (!plotting_frame_selector_.target_override &&
target_id != null && plugin_.HasVessel(target_id)) {
// TODO(phl): It's not nice that we are overriding the target vessel
// parameters.
AdaptiveStepParameters adaptive_step_parameters =
plugin_.VesselGetPredictionAdaptiveStepParameters(
main_vessel.id.ToString());
plugin_.VesselSetPredictionAdaptiveStepParameters(
target_id, adaptive_step_parameters);
plugin_.UpdatePrediction(target_id);
}
}