fix conversion

This commit is contained in:
Thijs Wenker 2017-04-26 22:11:56 +02:00
parent 20a9b60e7b
commit d05229d3b4

View file

@ -186,9 +186,7 @@
} else if (hand === Controller.Standard.LeftHand) { } else if (hand === Controller.Standard.LeftHand) {
return "LeftHand"; return "LeftHand";
} }
debug("handToString called without valid hand!"); debug("handToString called without valid hand! value: ", hand);
debugger;
throw new Exception('hm');
return ""; return "";
} }
@ -769,7 +767,7 @@
connectingId = senderID; connectingId = senderID;
connectingHandString = message.hand; connectingHandString = message.hand;
connectingHandJointIndex = AvatarList.getAvatarIdentifiers().indexOf(connectingId) !== -1 ? connectingHandJointIndex = AvatarList.getAvatarIdentifiers().indexOf(connectingId) !== -1 ?
getIdealHandJointIndex(AvatarList.getAvatar(connectingId), connectingHandString) : -1; getIdealHandJointIndex(AvatarList.getAvatar(connectingId), stringToHand(connectingHandString)) : -1;
messageSend({ messageSend({
key: "connectionAck", key: "connectionAck",
id: senderID, id: senderID,