Merge pull request #9135 from druiz17/nearGrab

Fixed pressing the grip button causes a near grabbed object to drop
This commit is contained in:
Ryan Huffman 2016-12-05 11:07:15 -08:00 committed by GitHub
commit 996d3f5875

View file

@ -1009,7 +1009,10 @@ function MyController(hand) {
this.secondaryPress = function(value) {
_this.rawSecondaryValue = value;
if (value > 0) {
// The value to check if we will allow the release function to be called
var allowReleaseValue = 0.1;
if (value > 0 && _this.state == STATE_HOLD) {
_this.release();
}
};