From 7e3c7a165ea54ae061ffcba561bf4de754dfe7bf Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 4 Sep 2019 18:28:54 +0800 Subject: [PATCH] Base: fix Matrix4D::hasScale() tol checking --- src/Base/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/Matrix.cpp b/src/Base/Matrix.cpp index 8aeb9b3d05..c1c32ea5f1 100644 --- a/src/Base/Matrix.cpp +++ b/src/Base/Matrix.cpp @@ -954,7 +954,7 @@ int Matrix4D::hasScale(double tol) const { // scaling factors are the column vector length. We use square distance and // ignore the actual scaling signess // - if(!tol) + if(tol == 0.0) tol = 1e-9; double dx = Vector3d(dMtrx4D[0][0],dMtrx4D[1][0],dMtrx4D[2][0]).Sqr(); double dy = Vector3d(dMtrx4D[0][1],dMtrx4D[1][1],dMtrx4D[2][1]).Sqr();