Browse Source

Merge pull request #37877 from madmiraal/fix-14864

Remove unnecessary check for zero determinant in Basis::orthonormalize().
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
1d8a9a9dc8
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      core/math/basis.cpp

+ 0 - 4
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);