aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_2d.cpp
diff options
context:
space:
mode:
authorMateusz Adamczyk2016-10-08 12:33:10 +0200
committerMateusz Adamczyk2016-10-08 12:33:10 +0200
commit8671836b76e8723a1d9021f8d7bf56ce5fdcc6f3 (patch)
tree5bd1e08107cdeb663bc87fe974dc5a4ce00a6aba /core/math/math_2d.cpp
parent1f9e16119f2b17fa507bdee8529459ed91f27b8c (diff)
downloadgodot-8671836b76e8723a1d9021f8d7bf56ce5fdcc6f3.tar.gz
godot-8671836b76e8723a1d9021f8d7bf56ce5fdcc6f3.tar.zst
godot-8671836b76e8723a1d9021f8d7bf56ce5fdcc6f3.zip
Diffstat (limited to 'core/math/math_2d.cpp')
-rw-r--r--core/math/math_2d.cpp2
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;