Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions MechJeb2/MechJebModuleStagingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public override void OnUpdate()
}

// always stage if we have no active engines
if (!InverseStageHasActiveEngines(Vessel.currentStage))
if (!InverseStageHasActiveEngines(Vessel.currentStage) && !WaitingForFairing())
{
Stage();
}
Expand All @@ -321,7 +321,7 @@ public override void OnUpdate()
return;

// Always drop deactivated engines or tanks
if (InverseStageDecouplesDeactivatedEngineOrTank(Vessel.currentStage - 1))
if (InverseStageDecouplesDeactivatedEngineOrTank(Vessel.currentStage - 1) && !WaitingForFairing())
{
Stage();
}
Expand Down Expand Up @@ -671,6 +671,9 @@ private bool HasFairingUncached(int inverseStage)
// decoupler check below
return _partsInStage.Slinq().All(p => p.IsProceduralFairingPayloadFairing());

if (_partsInStage.Slinq().Any(p => p.Modules.Contains("ModuleProceduralFairing")))
return true;

// this is simple, but subtle:
// 1. we do not identify fairings as separate from decouplers here because of part mods like RSB
// which only put a stock decoupler in the staging.
Expand Down