Skip to content

Commit

Permalink
disable hands in certain scenes, fix window not showing VR view
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivero committed May 7, 2020
1 parent 18224b2 commit 34f70bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions KerbalVR_Mod/KerbalVR/KerbalVR_InteractionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ protected void Update() {
// EVA-specific settings
renderLayerHands.Push(0);
}
} else {
isRenderingHands.Push(false);
}
break;
}
} else {
isRenderingHands.Push(false);
}

// makes changes as necessary
Expand Down
2 changes: 1 addition & 1 deletion KerbalVR_Mod/KerbalVR/KerbalVR_Scene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ protected IEnumerator TransitionScene() {
foreach (string kspCameraName in currentKspSceneCameraNames) {
Camera kspCamera = GetKspCameraComponent(kspCameraName);
if (kspCamera == null) continue;
if (!kspCamera.enabled) kspCamera.enabled = false;
if (kspCamera.enabled) kspCamera.enabled = false;
}

// turn on the VR cameras for the new camera names set
Expand Down

0 comments on commit 34f70bf

Please sign in to comment.