From 8343cfd68798b086bd217aaa29f74473bd9de50f Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 9 Sep 2016 15:53:18 -0700 Subject: [PATCH] Add grip to unequip --- scripts/system/controllers/handControllerGrab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index 892ace04eb..2d3aff44fc 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1002,6 +1002,9 @@ function MyController(hand) { this.secondaryPress = function(value) { _this.rawSecondaryValue = value; + if (value > 0) { + _this.release(); + } }; this.updateSmoothedTrigger = function() {