void OnPostRender() { // do nothing if DB isn't ready for whatever reason if (!DB.Ready()) return; // do nothing when not in map view if (!MapView.MapIsEnabled) return; // commit all geometry Signal.render(); Radiation.render(); // render all committed geometry LineRenderer.render(); ParticleRenderer.render(); }
void OnPostRender() { // do nothing when not in map view // - avoid weird situation when in some user installation MapIsEnabled is true in the space center if (!MapView.MapIsEnabled || HighLogic.LoadedScene == GameScenes.SPACECENTER) { return; } // commit all geometry Signal.render(); Radiation.render(); // render all committed geometry LineRenderer.render(); ParticleRenderer.render(); }