More cleanup after crash tracing

This commit is contained in:
Eric Johnston 2013-08-05 16:02:09 -07:00
parent 858738a10a
commit 14e470133c

View file

@ -121,7 +121,6 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
for (unsigned int handIndex = 0; handIndex < numHands; ++handIndex) {
if (handIndex >= getNumPalms())
addNewPalm();
if (handIndex < getNumPalms()) {
PalmData& palm = getPalms()[handIndex];
glm::vec3 handPosition;
@ -133,6 +132,7 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
palm.setRawPosition(handPosition);
palm.setRawNormal(handNormal);
palm.setActive(true);
for (unsigned int fingerIndex = 0; fingerIndex < numFingers; ++fingerIndex) {
if (fingerIndex < palm.getNumFingers()) {
FingerData& finger = palm.getFingers()[fingerIndex];
@ -152,7 +152,6 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
FingerData& finger = palm.getFingers()[fingerIndex];
finger.setActive(false);
}
}
}
// Turn off any hands which weren't used.
for (unsigned int handIndex = numHands; handIndex < getNumPalms(); ++handIndex) {