mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 12:15:30 +02:00
Merge pull request #6355 from sethalves/dont-neargrab-nonphysical
don't attempt to near-grab things that aren't physical
This commit is contained in:
commit
ff87a6ce6f
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ function MyController(hand) {
|
||||||
if (grabbableData.wantsTrigger) {
|
if (grabbableData.wantsTrigger) {
|
||||||
this.setState(STATE_NEAR_TRIGGER);
|
this.setState(STATE_NEAR_TRIGGER);
|
||||||
return;
|
return;
|
||||||
} else if (!props.locked) {
|
} else if (!props.locked && props.collisionsWillMove) {
|
||||||
this.setState(STATE_NEAR_GRABBING);
|
this.setState(STATE_NEAR_GRABBING);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue