more cleanup

This commit is contained in:
Brad Hefta-Gaub 2015-10-27 16:37:43 -07:00
parent 19743c1f39
commit d86f1b50a7
3 changed files with 4 additions and 8 deletions

View file

@ -51,8 +51,7 @@ void Hand::renderHandTargets(RenderArgs* renderArgs, bool isMine) {
gpu::Batch& batch = *renderArgs->_batch;
if (isMine) {
for (size_t i = 0; i < palms.size(); i++) {
PalmData& palm = palms[i];
for (const auto& palm : palms) {
if (!palm.isActive()) {
continue;
}
@ -78,8 +77,7 @@ void Hand::renderHandTargets(RenderArgs* renderArgs, bool isMine) {
const float AXIS_LENGTH = 10.0f * SPHERE_RADIUS;
// Draw the coordinate frames of the hand targets
for (size_t i = 0; i < palms.size(); ++i) {
PalmData& palm = palms[i];
for (const auto& palm : palms) {
if (palm.isActive()) {
glm::vec3 root = palm.getPosition();

View file

@ -321,8 +321,7 @@ void ApplicationCompositor::displayOverlayTextureHmd(RenderArgs* renderArgs, int
if (Menu::getInstance()->isOptionChecked(MenuOption::EnableHandMouseInput)) {
MyAvatar* myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();
auto palms = myAvatar->getHand()->getCopyOfPalms();
for (int i = 0; i < (int)palms.size(); i++) {
const auto& palm = palms[i];
for (const auto& palm : palms) {
if (palm.isActive()) {
glm::vec2 polar = getPolarCoordinates(palm);
// Convert to quaternion

View file

@ -85,8 +85,7 @@ bool HandData::findSpherePenetration(const glm::vec3& penetratorCenter, float pe
const PalmData*& collidingPalm) const {
QReadLocker locker(&_palmsLock);
for (size_t i = 0; i < _palms.size(); ++i) {
const PalmData& palm = _palms[i];
for (const auto& palm : _palms) {
if (!palm.isActive()) {
continue;
}