Wrong array index here, and finger needs to be flagged as active so that the

avatar mixer will encode it.
This commit is contained in:
Andrzej Kapolka 2013-08-01 18:32:48 -07:00
parent 92ec593882
commit c038e2c9ba

View file

@ -83,7 +83,8 @@ void HandData::decodeRemoteData(const std::vector<glm::vec3>& fingerVectors) {
palm.setRawPosition(fingerVectors[vectorIndex++]);
palm.setRawNormal(fingerVectors[vectorIndex++]);
for (size_t f = 0; f < NUM_FINGERS_PER_HAND; ++f) {
FingerData& finger = palm.getFingers()[i];
FingerData& finger = palm.getFingers()[f];
finger.setActive(true);
finger.setRawTipPosition(fingerVectors[vectorIndex++]);
finger.setRawRootPosition(fingerVectors[vectorIndex++]);
}