Fix bug with Basis.Transposed()
Fix bug where Basis.Transposed() incorrectly updated local basis, and
returned an unmodified copy. This also fixes Transform.Inverse().
(cherry picked from commit 7a4d593198
)
This commit is contained in:
parent
94debea0a9
commit
e5aedf130f
|
@ -343,17 +343,17 @@ namespace Godot
|
||||||
{
|
{
|
||||||
var tr = this;
|
var tr = this;
|
||||||
|
|
||||||
real_t temp = this[0, 1];
|
real_t temp = tr[0, 1];
|
||||||
this[0, 1] = this[1, 0];
|
tr[0, 1] = tr[1, 0];
|
||||||
this[1, 0] = temp;
|
tr[1, 0] = temp;
|
||||||
|
|
||||||
temp = this[0, 2];
|
temp = tr[0, 2];
|
||||||
this[0, 2] = this[2, 0];
|
tr[0, 2] = tr[2, 0];
|
||||||
this[2, 0] = temp;
|
tr[2, 0] = temp;
|
||||||
|
|
||||||
temp = this[1, 2];
|
temp = tr[1, 2];
|
||||||
this[1, 2] = this[2, 1];
|
tr[1, 2] = tr[2, 1];
|
||||||
this[2, 1] = temp;
|
tr[2, 1] = temp;
|
||||||
|
|
||||||
return tr;
|
return tr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue