more warning fixes

This commit is contained in:
Anthony J. Thibault 2017-08-11 17:46:50 -07:00
parent f72a94e195
commit cd57c0706a
2 changed files with 2 additions and 2 deletions

View file

@ -1831,7 +1831,7 @@ void MyAvatar::postUpdate(float deltaTime) {
rig.getAbsoluteJointPoseInRigFrame(i, jointPose);
const FBXJointShapeInfo& shapeInfo = geometry.joints[i].shapeInfo;
const AnimPose pose = rigToWorldPose * jointPose;
for (int j = 0; j < shapeInfo.debugLines.size() / 2; j++) {
for (size_t j = 0; j < shapeInfo.debugLines.size() / 2; j++) {
glm::vec3 pointA = pose.xformPoint(shapeInfo.debugLines[2 * j]);
glm::vec3 pointB = pose.xformPoint(shapeInfo.debugLines[2 * j + 1]);
DebugDraw::getInstance().drawRay(pointA, pointB, DEBUG_COLORS[i % NUM_DEBUG_COLORS]);

View file

@ -1831,7 +1831,7 @@ void Rig::computeAvatarBoundingCapsule(
const FBXJointShapeInfo& shapeInfo = geometry.joints.at(index).shapeInfo;
AnimPose pose = finalPoses[index];
if (shapeInfo.points.size() > 0) {
for (int j = 0; j < shapeInfo.points.size(); ++j) {
for (size_t j = 0; j < shapeInfo.points.size(); ++j) {
totalExtents.addPoint((pose * shapeInfo.points[j]));
}
}