From 8e6e91f2cdac651bc3815bd3f7220b98ab64326d 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(). --- core/math/basis.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/math/basis.cpp b/core/math/basis.cpp index 14079f811de..0f519a20d89 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);