mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 13:33:26 +02:00
Merge pull request #10222 from sethalves/fix-late-touch-cant-grab-tablet
fix can't grab tablet
This commit is contained in:
commit
6a6800b8c3
1 changed files with 3 additions and 4 deletions
|
@ -27,8 +27,8 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
// add lines where the hand ray picking is happening
|
||||
//
|
||||
|
||||
var WANT_DEBUG = true;
|
||||
var WANT_DEBUG_STATE = true;
|
||||
var WANT_DEBUG = false;
|
||||
var WANT_DEBUG_STATE = false;
|
||||
var WANT_DEBUG_SEARCH_NAME = null;
|
||||
|
||||
var FORCE_IGNORE_IK = false;
|
||||
|
@ -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