mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
More cleanup after crash tracing
This commit is contained in:
parent
858738a10a
commit
14e470133c
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue