mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
grab script checks for touch devices continually, rather than just when the script starts
This commit is contained in:
parent
3519a72f8a
commit
6420ddd038
1 changed files with 1 additions and 2 deletions
|
@ -1051,8 +1051,6 @@ function MyController(hand) {
|
|||
this.homeButtonTouched = false;
|
||||
this.editTriggered = false;
|
||||
|
||||
this.controllerJointIndex = getControllerJointIndex(this.hand);
|
||||
|
||||
// Until there is some reliable way to keep track of a "stack" of parentIDs, we'll have problems
|
||||
// when more than one avatar does parenting grabs on things. This script tries to work
|
||||
// around this with two associative arrays: previousParentID and previousParentJointIndex. If
|
||||
|
@ -1736,6 +1734,7 @@ function MyController(hand) {
|
|||
|
||||
this.off = function(deltaTime, timestamp) {
|
||||
|
||||
this.controllerJointIndex = getControllerJointIndex(this.hand);
|
||||
this.checkForUnexpectedChildren();
|
||||
|
||||
if (this.editTriggered) {
|
||||
|
|
Loading…
Reference in a new issue