mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
more warning fixes
This commit is contained in:
parent
f72a94e195
commit
cd57c0706a
2 changed files with 2 additions and 2 deletions
|
@ -1831,7 +1831,7 @@ void MyAvatar::postUpdate(float deltaTime) {
|
||||||
rig.getAbsoluteJointPoseInRigFrame(i, jointPose);
|
rig.getAbsoluteJointPoseInRigFrame(i, jointPose);
|
||||||
const FBXJointShapeInfo& shapeInfo = geometry.joints[i].shapeInfo;
|
const FBXJointShapeInfo& shapeInfo = geometry.joints[i].shapeInfo;
|
||||||
const AnimPose pose = rigToWorldPose * jointPose;
|
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 pointA = pose.xformPoint(shapeInfo.debugLines[2 * j]);
|
||||||
glm::vec3 pointB = pose.xformPoint(shapeInfo.debugLines[2 * j + 1]);
|
glm::vec3 pointB = pose.xformPoint(shapeInfo.debugLines[2 * j + 1]);
|
||||||
DebugDraw::getInstance().drawRay(pointA, pointB, DEBUG_COLORS[i % NUM_DEBUG_COLORS]);
|
DebugDraw::getInstance().drawRay(pointA, pointB, DEBUG_COLORS[i % NUM_DEBUG_COLORS]);
|
||||||
|
|
|
@ -1831,7 +1831,7 @@ void Rig::computeAvatarBoundingCapsule(
|
||||||
const FBXJointShapeInfo& shapeInfo = geometry.joints.at(index).shapeInfo;
|
const FBXJointShapeInfo& shapeInfo = geometry.joints.at(index).shapeInfo;
|
||||||
AnimPose pose = finalPoses[index];
|
AnimPose pose = finalPoses[index];
|
||||||
if (shapeInfo.points.size() > 0) {
|
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]));
|
totalExtents.addPoint((pose * shapeInfo.points[j]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue