summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-04-14 17:17:43 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-04-14 17:20:45 +0100
commit8e6e91f2cdac651bc3815bd3f7220b98ab64326d (patch)
tree1f00bd21acbe23a7da0ba42bf262ced9bc4ee23b /core/math
parent5e5103f460f406899582e4307e56882401fd37d5 (diff)
Remove unnecessary check for zero determinant in Basis::orthonormalize().
Diffstat (limited to 'core/math')
-rw-r--r--core/math/basis.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp
index 14079f811d..0f519a20d8 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);