From d60b05b4807fddcdc55c5526324bc2e25b2fabc1 Mon Sep 17 00:00:00 2001 From: Kevin Abellan Date: Fri, 21 Sep 2018 18:44:14 -0400 Subject: [PATCH] Add missing if block to VR tutorial source example Fixed formatting and corrected the example code to better reflect the intent of the tutorial text. i.e. "...The last thing we are doing in button_pressed is checking to see if the button pressed is 1..." --- tutorials/vr/vr_starter_tutorial.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/vr/vr_starter_tutorial.rst b/tutorials/vr/vr_starter_tutorial.rst index 356451b44..924f9d0e8 100644 --- a/tutorials/vr/vr_starter_tutorial.rst +++ b/tutorials/vr/vr_starter_tutorial.rst @@ -377,7 +377,8 @@ Add the following to ``VR_Controller.gd``: # If the menu button is pressed... - if grab_mode == "AREA": + if button_index == 1: + if grab_mode == "AREA": grab_mode = "RAYCAST" if held_object == null: