Merge pull request #14341 from sethalves/fix-mouse-equip

only equip an entity to a hand-controller joint if the hand-controllers are in use, else use avatar hand
This commit is contained in:
Jeff Clinton 2018-11-09 12:54:36 -08:00 committed by GitHub
commit ee9154a801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,7 +485,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
}
var handJointIndex;
if (grabData.grabFollowsController) {
if (HMD.mounted && HMD.isHandControllerAvailable() && grabData.grabFollowsController) {
handJointIndex = this.controllerJointIndex;
} else {
handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");