mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
remove warnings about signed/unsigned comparison
This commit is contained in:
parent
8ffc3aa73d
commit
85bfcf0eea
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ void MotionTracker::updateAllAbsTransform() {
|
||||||
_jointsArray[0].updateAbsFromLocTransform(0);
|
_jointsArray[0].updateAbsFromLocTransform(0);
|
||||||
|
|
||||||
// Because we know the hierarchy is stored from root down the branches let's just traverse and update
|
// Because we know the hierarchy is stored from root down the branches let's just traverse and update
|
||||||
for (Index i = 1; i < _jointsArray.size(); i++) {
|
for (Index i = 1; i < (Index)(_jointsArray.size()); i++) {
|
||||||
JointTracker* joint = _jointsArray.data() + i;
|
JointTracker* joint = _jointsArray.data() + i;
|
||||||
joint->updateAbsFromLocTransform(_jointsArray.data() + joint->getParent());
|
joint->updateAbsFromLocTransform(_jointsArray.data() + joint->getParent());
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,8 +84,8 @@ public:
|
||||||
/// Access a Joint from it's index.
|
/// Access a Joint from it's index.
|
||||||
/// Index 0 is always the "Root".
|
/// Index 0 is always the "Root".
|
||||||
/// if the index is Invalid then returns NULL.
|
/// if the index is Invalid then returns NULL.
|
||||||
const JointTracker* getJointTracker(Index index) const { return ((index > 0) && (index < _jointsArray.size()) ? _jointsArray.data() + index : NULL); }
|
const JointTracker* getJointTracker(Index index) const { return ((index > 0) && (index < (Index)(_jointsArray.size())) ? _jointsArray.data() + index : NULL); }
|
||||||
JointTracker* editJointTracker(Index index) { return ((index > 0) && (index < _jointsArray.size()) ? _jointsArray.data() + index : NULL); }
|
JointTracker* editJointTracker(Index index) { return ((index > 0) && (index < (Index)(_jointsArray.size())) ? _jointsArray.data() + index : NULL); }
|
||||||
|
|
||||||
/// From a semantic, find the Index of the Joint.
|
/// From a semantic, find the Index of the Joint.
|
||||||
/// \return the index of the mapped Joint or INVALID_SEMANTIC if the semantic is not knowned.
|
/// \return the index of the mapped Joint or INVALID_SEMANTIC if the semantic is not knowned.
|
||||||
|
|
Loading…
Reference in a new issue