use cmath and C++ (std::) versions of functions

This commit is contained in:
Eshed
2016-10-15 03:29:45 +03:00
parent ccf32aaf57
commit 25cda401c5
12 changed files with 26 additions and 27 deletions

View File

@@ -501,7 +501,7 @@ aiMatrix4x4 XGLImporter::ReadTrafo()
up.Normalize();
right = forward ^ up;
if (fabs(up * forward) > 1e-4) {
if (std::fabs(up * forward) > 1e-4) {
// this is definitely wrong - a degenerate coordinate space ruins everything
// so subtitute identity transform.
LogError("<forward> and <up> vectors in <transform> are skewing, ignoring trafo");