diff --git a/GameData/NearFutureExploration/Plugins/NearFutureExploration.dll b/GameData/NearFutureExploration/Plugins/NearFutureExploration.dll index 15c2985..1e6f980 100644 Binary files a/GameData/NearFutureExploration/Plugins/NearFutureExploration.dll and b/GameData/NearFutureExploration/Plugins/NearFutureExploration.dll differ diff --git a/GameData/NearFutureExploration/Versioning/NearFutureExploration.version b/GameData/NearFutureExploration/Versioning/NearFutureExploration.version index 5cc3658..26ae56c 100644 --- a/GameData/NearFutureExploration/Versioning/NearFutureExploration.version +++ b/GameData/NearFutureExploration/Versioning/NearFutureExploration.version @@ -6,7 +6,7 @@ { "MAJOR":1, "MINOR":0, - "PATCH":9, + "PATCH":10, "BUILD":0 }, "KSP_VERSION": diff --git a/Source/ModuleAntennaFeed.cs b/Source/ModuleAntennaFeed.cs index 33c9f0d..57bfd5e 100644 --- a/Source/ModuleAntennaFeed.cs +++ b/Source/ModuleAntennaFeed.cs @@ -185,10 +185,13 @@ void FixedUpdate() Fields["StatusString"].guiActiveEditor = false; Fields["TargetString"].guiActiveEditor = false; } - if (lineRenderable) - renderedLine.SetVisibility(true); - renderedLine.AdjustSize(30f); - renderedLine.SetColor(badColor); + if (HighLogic.LoadedSceneIsEditor) + { + if (lineRenderable) + renderedLine.SetVisibility(true); + renderedLine.AdjustSize(30f); + renderedLine.SetColor(badColor); + } } } } diff --git a/Source/VisualDebug.cs b/Source/VisualDebug.cs index a6ddf18..0d52615 100644 --- a/Source/VisualDebug.cs +++ b/Source/VisualDebug.cs @@ -123,8 +123,10 @@ public DebugLine(float size, Color color) public void AdjustSize(float size) { - axis.SetPosition(0, Vector3.zero); - axis.SetPosition(1, Vector3.forward * size); + if (axis.positionCount > 0) + axis.SetPosition(0, Vector3.zero); + if (axis.positionCount > 1) + axis.SetPosition(1, Vector3.forward * size); } public void Destroy() { diff --git a/changelog.txt b/changelog.txt index 60481dd..c32c8da 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +v1.0.10 +------- +- Fixed an issue where broken antennas would cause NREs + v1.0.9 ------ - Marked compatible for KSP 1.10+ diff --git a/readme.txt b/readme.txt index 6c54baa..c39cdc9 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ -============================== -Near Future Exploration v1.0.9 -============================== +=============================== +Near Future Exploration v1.0.10 +=============================== A set of parts to help enhance and improve the KSP probe experience, particularly in the later game with larger probes