diff options
| author | Juan Linietsky | 2017-07-04 23:52:23 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-07-04 23:53:08 -0300 |
| commit | 7263137dba86cd308afc2016fafcb2793c3d9073 (patch) | |
| tree | 16e85fc7a837409c7284b1a620f76f4362efa911 /core/math/matrix3.cpp | |
| parent | d84ed525a9b603c157abab1c67f8ac34d6d4675c (diff) | |
| download | godot-7263137dba86cd308afc2016fafcb2793c3d9073.tar.gz godot-7263137dba86cd308afc2016fafcb2793c3d9073.tar.zst godot-7263137dba86cd308afc2016fafcb2793c3d9073.zip | |
Diffstat (limited to 'core/math/matrix3.cpp')
| -rw-r--r-- | core/math/matrix3.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/math/matrix3.cpp b/core/math/matrix3.cpp index c733251c3..b59fecc19 100644 --- a/core/math/matrix3.cpp +++ b/core/math/matrix3.cpp @@ -451,9 +451,10 @@ Basis::operator String() const { } Basis::operator Quat() const { -#ifdef MATH_CHECKS - ERR_FAIL_COND_V(is_rotation() == false, Quat()); -#endif + //commenting this check because precision issues cause it to fail when it shouldn't + //#ifdef MATH_CHECKS + //ERR_FAIL_COND_V(is_rotation() == false, Quat()); + //#endif real_t trace = elements[0][0] + elements[1][1] + elements[2][2]; real_t temp[4]; |
