Skip to content

Commit 91423ea

Browse files
committed
disable the internal camera when stopping PCR so that it doesn't get deactivated along with the room
1 parent c11b70a commit 91423ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ProbeControlRoom/ProbeControlRoom.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ public void stopIVA()
517517

518518
isActive = false;
519519

520+
// this re-attaches the camera to the internal space, so that it doesn't get deactivated below
521+
// It's really important that the camera doesn't get deactivated, because then it can't be found again by the stock code
522+
InternalCamera.Instance.DisableCamera();
523+
520524
if (aPart != null && aPart.internalModel != null)
521525
{
522526
aPart.internalModel.gameObject.SetActive(false);

0 commit comments

Comments
 (0)