mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +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.homeButtonTouched = false;
|
||||||
this.editTriggered = 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
|
// 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
|
// 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
|
// around this with two associative arrays: previousParentID and previousParentJointIndex. If
|
||||||
|
@ -1736,6 +1734,7 @@ function MyController(hand) {
|
||||||
|
|
||||||
this.off = function(deltaTime, timestamp) {
|
this.off = function(deltaTime, timestamp) {
|
||||||
|
|
||||||
|
this.controllerJointIndex = getControllerJointIndex(this.hand);
|
||||||
this.checkForUnexpectedChildren();
|
this.checkForUnexpectedChildren();
|
||||||
|
|
||||||
if (this.editTriggered) {
|
if (this.editTriggered) {
|
||||||
|
|
Loading…
Reference in a new issue