Commit 79fb279
committed
Fix MASMonitor screen camera rendering to main display when IVA is inactive
When the active vessel switches (e.g. crew goes on EVA), KSP calls
OnBecomeInactive() on all InternalModules. MASMonitor's screenCamera
is left enabled with ClearFlags.SolidColor and an opaque-black background,
so it renders to the main screen every frame, wiping the skybox and
scaled-space bodies (Mun, Kerbin, etc.) until the vessel is reactivated.
Fix: override OnBecomeInactive() to disable screenCamera, and
OnBecomeActive() to re-enable it.1 parent 109f31c commit 79fb279
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
347 | 371 | | |
348 | 372 | | |
349 | 373 | | |
| |||
0 commit comments