KSPModdingLibs/KSPCommunityFixes

IVA doesn’t work properly for parts with ModuleAnimateGeneric that modify crew capacity

JonnyOThan opened this issue · 1 comments

Part internals are created before the moduleAnimateGeneric is started, so the internal will not be created until something else forces a refresh (crew transfer etc). This affects the making history inflatable airlock and some modded parts. Just need to insert some logic to spawn or de spawn the internals in CheckCrew.

Repro steps:

  1. create a ship that has an inflatable airlock and launch it with 1 kerbal on board
  2. expand the airlock
  3. transfer the kerbal to the airlock
  4. save & load, switch scenes and come back, etc.

The kerbal portrait will be missing and pressing C to enter IVA mode has no effect. Doing a crew transfer will refresh things.

Fix released in 1.32.0