Use std::fpclassify

pull/5471/head
Kim Kulling 2024-02-22 11:51:50 +01:00
parent fe5305ce4d
commit 95ba8e6263
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ aiMatrix4x4 get_world_transform(const aiNode* node, const aiScene* scene)
}
inline int64_t to_ktime(double ticks, const aiAnimation* anim) {
if (FP_ZERO == fpclassify(anim->mTicksPerSecond)) {
if (FP_ZERO == std::fpclassify(anim->mTicksPerSecond)) {
return static_cast<int64_t>(ticks) * FBX::SECOND;
}
return (static_cast<int64_t>(ticks / anim->mTicksPerSecond)) * FBX::SECOND;