diff options
| author | Mateusz Adamczyk | 2016-10-08 12:33:10 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-10-09 17:40:37 +0200 |
| commit | ce1138cb02c75896e1926ad2e7b51fa2c0cd2f19 (patch) | |
| tree | 035f59c0e0f5abeba8d14b6096d0641668f6c319 /core/math/math_2d.cpp | |
| parent | a139c7afe6b902856ae768ccf6991fd695350524 (diff) | |
| download | godot-ce1138cb02c75896e1926ad2e7b51fa2c0cd2f19.tar.gz godot-ce1138cb02c75896e1926ad2e7b51fa2c0cd2f19.tar.zst godot-ce1138cb02c75896e1926ad2e7b51fa2c0cd2f19.zip | |
Diffstat (limited to 'core/math/math_2d.cpp')
| -rw-r--r-- | core/math/math_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp index 2cc11aa73..e616f0591 100644 --- a/core/math/math_2d.cpp +++ b/core/math/math_2d.cpp @@ -424,7 +424,7 @@ Matrix32 Matrix32::inverse() const { void Matrix32::affine_invert() { - float det = elements[0][0]*elements[1][1] - elements[1][0]*elements[0][1]; + float det = basis_determinant(); ERR_FAIL_COND(det==0); float idet = 1.0 / det; |
