Skip to content

Commit

Permalink
Decouple ParentBody from isHome in the planner
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Aug 20, 2024
1 parent 8d79855 commit 075a5c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RealAntennasProject/PlannerGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ private void FireOnce()
primaryFarNode.precisePosition = primaryFarNode.position;
fixedNode.isHome = fixedAntenna.ParentNode?.isHome ?? false;
primaryNearNode.isHome = primaryFarNode.isHome = primaryAntenna.ParentNode?.isHome ?? false;
primaryNearNode.ParentBody = primaryNearNode.isHome ? home : null;
primaryFarNode.ParentBody = primaryFarNode.isHome ? home : null;
fixedNode.ParentBody = fixedNode.isHome ? home : null;
primaryNearNode.ParentBody = (primaryAntenna.ParentNode as RACommNode)?.ParentBody;
primaryFarNode.ParentBody = (primaryAntenna.ParentNode as RACommNode)?.ParentBody;
fixedNode.ParentBody = (fixedAntenna.ParentNode as RACommNode)?.ParentBody;

var nodes = new List<CommNet.CommNode> { fixedNode, primaryNearNode };
var bodies = new List<CelestialBody> { Planetarium.fetch.Home };
Expand Down

0 comments on commit 075a5c7

Please sign in to comment.