PartInfo overlay hidden when not in parts screen.
[VesselSimulator.git] / KerbalEngineer / Editor / BuildOverlayPartInfo.cs
blob:a/KerbalEngineer/Editor/BuildOverlayPartInfo.cs -> blob:b/KerbalEngineer/Editor/BuildOverlayPartInfo.cs
--- a/KerbalEngineer/Editor/BuildOverlayPartInfo.cs
+++ b/KerbalEngineer/Editor/BuildOverlayPartInfo.cs
@@ -97,7 +97,7 @@
         {
             try
             {
-                if (!Visible || Hidden || EditorLogic.startPod == null)
+                if (!Visible || Hidden || EditorLogic.startPod == null || EditorLogic.fetch.editorScreen != EditorLogic.EditorScreen.Parts)
                 {
                     return;
                 }