From e869da9665b7ac3c91b0c159001de540ec25ab39 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 14 Apr 2020 17:17:43 +0100 Subject: [PATCH] Remove unnecessary check for zero determinant in Basis::orthonormalize(). (cherry picked from commit 8e6e91f2cdac651bc3815bd3f7220b98ab64326d) --- core/math/basis.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/math/basis.cpp b/core/math/basis.cpp index ddf5f13d559..c386ac8f4c0 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -77,10 +77,6 @@ void Basis::invert() { void Basis::orthonormalize() { -#ifdef MATH_CHECKS - ERR_FAIL_COND(determinant() == 0); -#endif - // Gram-Schmidt Process Vector3 x = get_axis(0);