mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Added simple check to viewport, if matrix32 is invesile (https://github.com/godotengine/godot/issues/6296).
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user