File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,8 @@ private void SetupGUI()
502502
503503 private void UpdateSwitchEventFlightVisibility ( )
504504 {
505- bool switchInFlightEnabled = subtypes . Any ( s => s != CurrentSubtype && s . allowSwitchInFlight && s . IsUnlocked ( ) ) ;
505+ bool switchInFlightEnabled = subtypes . Any ( s => s != CurrentSubtype && s . allowSwitchInFlight && s . IsUnlocked ( ) ) && subtypes [ SubtypeIndex ] . allowSwitchFromInFlight ;
506+
506507 BaseEvent switchSubtypeEvent = Events [ nameof ( ShowSubtypesWindow ) ] ;
507508 switchSubtypeEvent . guiActive = switchInFlight && switchInFlightEnabled ;
508509
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ public class PartSubtype : IContextualNode
116116 [ NodeData ]
117117 public bool allowSwitchInFlight = true ;
118118
119+ [ NodeData ]
120+ public bool allowSwitchFromInFlight = true ;
121+
119122 [ NodeData ]
120123 public string mirrorSymmetrySubtype ;
121124
You can’t perform that action at this time.
0 commit comments