mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +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) {
|
for (unsigned int handIndex = 0; handIndex < numHands; ++handIndex) {
|
||||||
if (handIndex >= getNumPalms())
|
if (handIndex >= getNumPalms())
|
||||||
addNewPalm();
|
addNewPalm();
|
||||||
if (handIndex < getNumPalms()) {
|
|
||||||
PalmData& palm = getPalms()[handIndex];
|
PalmData& palm = getPalms()[handIndex];
|
||||||
|
|
||||||
glm::vec3 handPosition;
|
glm::vec3 handPosition;
|
||||||
|
@ -133,6 +132,7 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
|
||||||
palm.setRawPosition(handPosition);
|
palm.setRawPosition(handPosition);
|
||||||
palm.setRawNormal(handNormal);
|
palm.setRawNormal(handNormal);
|
||||||
palm.setActive(true);
|
palm.setActive(true);
|
||||||
|
|
||||||
for (unsigned int fingerIndex = 0; fingerIndex < numFingers; ++fingerIndex) {
|
for (unsigned int fingerIndex = 0; fingerIndex < numFingers; ++fingerIndex) {
|
||||||
if (fingerIndex < palm.getNumFingers()) {
|
if (fingerIndex < palm.getNumFingers()) {
|
||||||
FingerData& finger = palm.getFingers()[fingerIndex];
|
FingerData& finger = palm.getFingers()[fingerIndex];
|
||||||
|
@ -152,7 +152,6 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
|
||||||
FingerData& finger = palm.getFingers()[fingerIndex];
|
FingerData& finger = palm.getFingers()[fingerIndex];
|
||||||
finger.setActive(false);
|
finger.setActive(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Turn off any hands which weren't used.
|
// Turn off any hands which weren't used.
|
||||||
for (unsigned int handIndex = numHands; handIndex < getNumPalms(); ++handIndex) {
|
for (unsigned int handIndex = numHands; handIndex < getNumPalms(); ++handIndex) {
|
||||||
|
|
Loading…
Reference in a new issue