mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
warning fixes
This commit is contained in:
parent
c35640f739
commit
aa848df227
2 changed files with 4 additions and 4 deletions
|
@ -75,12 +75,12 @@ const AnimPoseVec& AnimBlendDirectional::evaluate(const AnimVariantMap& animVars
|
|||
alpha.y += 1.0f;
|
||||
}
|
||||
}
|
||||
std::array<float, 4> alphas = {
|
||||
std::array<float, 4> alphas = {{
|
||||
alpha.x * alpha.y,
|
||||
(1.0f - alpha.x) * alpha.y,
|
||||
(1.0f - alpha.x) * (1.0f - alpha.y),
|
||||
alpha.x * (1.0f - alpha.y)
|
||||
};
|
||||
}};
|
||||
|
||||
// evaluate children
|
||||
std::array<AnimPoseVec, 4> poseVecs;
|
||||
|
|
|
@ -100,9 +100,9 @@ public:
|
|||
}
|
||||
|
||||
int findChildIndexByName(const QString& id) {
|
||||
for (int i = 0; i < _children.size(); ++i) {
|
||||
for (size_t i = 0; i < _children.size(); ++i) {
|
||||
if (_children[i]->getID() == id) {
|
||||
return i;
|
||||
return (int)i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue