We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504aa6e commit c6ec303Copy full SHA for c6ec303
ProbeControlRoom/ProbeControlRoom.cs
@@ -240,7 +240,10 @@ private void toggleIVA()
240
/// </summary>
241
public void OnDestroy()
242
{
243
- stopIVA();
+ if (isActive)
244
+ {
245
+ stopIVA();
246
+ }
247
248
ProbeControlRoomUtils.Logger.debug("OnDestroy()");
249
@@ -555,7 +558,7 @@ public void stopIVA()
555
558
InputLockManager.RemoveControlLock("ProbeControlRoom");
556
559
557
560
//Switch back to normal cameras
- if (CameraManager.Instance.currentCameraMode == CameraManager.CameraMode.IVA)
561
+ if (CameraManager.Instance != null && CameraManager.Instance.currentCameraMode == CameraManager.CameraMode.IVA)
562
563
CameraManager.Instance.SetCameraFlight();
564
}
0 commit comments