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:
Seth Alves 2018-11-03 13:14:08 -07:00
parent d0181283dd
commit a94fd2a1c9

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");