From 95ff46cc1729f19370bd8335e02576574ae454cb Mon Sep 17 00:00:00 2001 From: AnonymousStrangerOW <169866456+AnonymousStrangerOW@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:56:07 -0500 Subject: [PATCH] stopped orbit line from generating at the eye the eye of the universe does not have a map viewer instance in its scene, so why even generate orbit lines to begin with? this also solved a graphical glitch containing a missing texture seen in new horizons examples. --- NewHorizons/Handlers/PlanetCreationHandler.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index 201def01..3d30788a 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -519,7 +519,10 @@ namespace NewHorizons.Handlers if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic) { - OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config); + if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse) + { + OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config); + } } DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config); @@ -841,7 +844,10 @@ namespace NewHorizons.Handlers var isMoon = newAO.GetAstroObjectType() is AstroObject.Type.Moon or AstroObject.Type.Satellite or AstroObject.Type.SpaceStation; if (body.Config.Orbit.showOrbitLine) { - OrbitlineBuilder.Make(go, isMoon, body.Config); + if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse) + { + OrbitlineBuilder.Make(go, isMoon, body.Config); + } } DetectorBuilder.SetDetector(primary, newAO, go.GetComponentInChildren());