From 04186664a3fc9ebe968dedddb7aa79f092590e0e Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 22 Feb 2013 16:44:29 -0800 Subject: [PATCH] the proper way to temporarily disable hand render --- interface/src/Hand.cpp | 8 +------- interface/src/Head.cpp | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/interface/src/Hand.cpp b/interface/src/Hand.cpp index c7e0c57094..23f71333f9 100644 --- a/interface/src/Hand.cpp +++ b/interface/src/Hand.cpp @@ -26,13 +26,7 @@ Hand::Hand(glm::vec3 initcolor) void Hand::render() { - glPushMatrix(); - glTranslatef(position.x, position.y, position.z); - glColor3f(color.x, color.y, color.z); - glScalef(scale.x, scale.y, scale.z); - glutSolidSphere(1.5, 20, 20); - glPopMatrix(); -} +g} void Hand::reset() { diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index b933cae73d..78ea7f950c 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -361,7 +361,7 @@ void Head::parseData(void *data, int size) { &position.x, &position.y, &position.z, &loudness, &averageLoudness, &handPos.x, &handPos.y, &handPos.z); -// if (glm::length(handPos) > 0.0) hand->setPos(handPos); + if (glm::length(handPos) > 0.0) hand->setPos(handPos); } void Head::SetNewHeadTarget(float pitch, float yaw)