mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #9135 from druiz17/nearGrab
Fixed pressing the grip button causes a near grabbed object to drop
This commit is contained in:
commit
996d3f5875
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue