Fix build on ubuntu

master
huxingyi 2019-03-03 14:44:48 +08:00
parent 26353d530a
commit 2d841fb58b
2 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,7 @@ bool Builder::validateNormal(const QVector3D &normal)
if (normal.isNull()) { if (normal.isNull()) {
return false; return false;
} }
if (isnan(normal.x()) || isnan(normal.y()) || isnan(normal.z())) { if (std::isnan(normal.x()) || std::isnan(normal.y()) || std::isnan(normal.z())) {
return false; return false;
} }
return true; return true;

View File

@ -2,6 +2,7 @@
#include <unordered_set> #include <unordered_set>
#include <set> #include <set>
#include <queue> #include <queue>
#include <cmath>
#include <simpleuv/uvunwrapper.h> #include <simpleuv/uvunwrapper.h>
#include <simpleuv/parametrize.h> #include <simpleuv/parametrize.h>
#include <simpleuv/chartpacker.h> #include <simpleuv/chartpacker.h>