Go ahead and show the leap hand by default, but don't include the fingers if

the palms are inactive (!)
This commit is contained in:
Andrzej Kapolka 2013-08-01 18:56:14 -07:00
parent c038e2c9ba
commit 69cac69067
2 changed files with 4 additions and 1 deletions

View file

@ -14,7 +14,7 @@
#include "Util.h"
#include "renderer/ProgramObject.h"
const bool SHOW_LEAP_HAND = false;
const bool SHOW_LEAP_HAND = true;
using namespace std;

View file

@ -53,6 +53,9 @@ void HandData::encodeRemoteData(std::vector<glm::vec3>& fingerVectors) {
fingerVectors.clear();
for (size_t i = 0; i < getNumPalms(); ++i) {
PalmData& palm = getPalms()[i];
if (!palm.isActive()) {
continue;
}
fingerVectors.push_back(palm.getRawPosition());
fingerVectors.push_back(palm.getRawNormal());
for (size_t f = 0; f < palm.getNumFingers(); ++f) {