diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index 88d5229f1a..e5271b0e62 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -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) {