mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
fixed near grab issue
This commit is contained in:
parent
dc7bb5b083
commit
1b24d373d2
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.rawTriggerValue <= allowReleaseValue) {
|
||||
_this.release();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue