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.
This commit is contained in:
AnonymousStrangerOW 2025-02-07 13:56:07 -05:00
parent d7065d8631
commit 95ff46cc17

View File

@ -518,9 +518,12 @@ namespace NewHorizons.Handlers
} }
if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic) if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic)
{
if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse)
{ {
OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config); OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config);
} }
}
DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config); DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config);
@ -840,9 +843,12 @@ namespace NewHorizons.Handlers
var isMoon = newAO.GetAstroObjectType() is AstroObject.Type.Moon or AstroObject.Type.Satellite or AstroObject.Type.SpaceStation; var isMoon = newAO.GetAstroObjectType() is AstroObject.Type.Moon or AstroObject.Type.Satellite or AstroObject.Type.SpaceStation;
if (body.Config.Orbit.showOrbitLine) if (body.Config.Orbit.showOrbitLine)
{
if (LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse)
{ {
OrbitlineBuilder.Make(go, isMoon, body.Config); OrbitlineBuilder.Make(go, isMoon, body.Config);
} }
}
DetectorBuilder.SetDetector(primary, newAO, go.GetComponentInChildren<ConstantForceDetector>()); DetectorBuilder.SetDetector(primary, newAO, go.GetComponentInChildren<ConstantForceDetector>());