Use std:: whenever possible.

This commit is contained in:
Par Winzell 2018-05-03 08:21:37 -07:00
parent 447333a16a
commit f530af8bf4
1 changed files with 2 additions and 2 deletions

View File

@ -1263,7 +1263,7 @@ static void ReadAnimations(RawModel &raw, FbxScene *pScene)
for (int targetIx = 0; targetIx < targetCount; targetIx++) { for (int targetIx = 0; targetIx < targetCount; targetIx++) {
if (curve) { if (curve) {
float result = findInInterval(influence, targetIx-1); float result = findInInterval(influence, targetIx-1);
if (!isnan(result)) { if (!std::isnan(result)) {
// we're transitioning into targetIx // we're transitioning into targetIx
channel.weights.push_back(result); channel.weights.push_back(result);
hasMorphs = true; hasMorphs = true;
@ -1271,7 +1271,7 @@ static void ReadAnimations(RawModel &raw, FbxScene *pScene)
} }
if (targetIx != targetCount-1) { if (targetIx != targetCount-1) {
result = findInInterval(influence, targetIx); result = findInInterval(influence, targetIx);
if (!isnan(result)) { if (!std::isnan(result)) {
// we're transitioning AWAY from targetIx // we're transitioning AWAY from targetIx
channel.weights.push_back(1.0f - result); channel.weights.push_back(1.0f - result);
hasMorphs = true; hasMorphs = true;