Skip to content

Commit

Permalink
Merge pull request #29 from net-lisias-kspu/pullrequest/to/upstream/2…
Browse files Browse the repository at this point in the history
…021-1005

Preventing Hullcam from ...
  • Loading branch information
linuxgurugamer authored Dec 5, 2021
2 parents 31a84d3 + 3ccbc47 commit 03aa3b2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion HullCamera/MuMechModuleHullCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,16 @@ public void EnableCamera()
{
return;
}

if (camActive)
{
LeaveCamera();
camActive = false;
}

camEnabled = !camEnabled;
Events["EnableCamera"].guiName = camEnabled ? locDisableCam : locEnableCam;


DirtyWindow();
}

Expand All @@ -576,6 +582,13 @@ public void DeactivateCameraAction(KSPActionParam ap)
{
return;
}

if (camActive)
{
LeaveCamera();
camActive = false;
}

camEnabled = !camEnabled;
Events["EnableCamera"].guiName = camEnabled ? locDeactivateCamera : locActivateCamera;
DirtyWindow();
Expand Down

0 comments on commit 03aa3b2

Please sign in to comment.