Specify that we want std::isnan().

Depending on platform, multiple versions of isnan() can easily be floating around, causing compilation headaches. Luckily we can always rely on the standard library implementation.
This commit is contained in:
Par Winzell 2018-12-02 19:00:42 -08:00
parent c34f861f69
commit a65628f56f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ json NodeData::serialize() const
// if any of the T/R/S have NaN components, just leave them out of the glTF // if any of the T/R/S have NaN components, just leave them out of the glTF
auto maybeAdd = [&](std::string key, std::vector<float> vec) -> void { auto maybeAdd = [&](std::string key, std::vector<float> vec) -> void {
if (std::none_of(vec.begin(), vec.end(), [&](float n) { return isnan(n); })) { if (std::none_of(vec.begin(), vec.end(), [&](float n) { return std::isnan(n); })) {
result[key] = vec; result[key] = vec;
} }
}; };