Unverified Commit a85f0f89 by Ignacio Etcheverry Committed by GitHub

Merge pull request #20257 from oisincar/fix_basis

Fix bug with Basis.Transposed()
parents b2d7641a 7a4d5931
......@@ -343,17 +343,17 @@ namespace Godot
{
var tr = this;
real_t temp = this[0, 1];
this[0, 1] = this[1, 0];
this[1, 0] = temp;
real_t temp = tr[0, 1];
tr[0, 1] = tr[1, 0];
tr[1, 0] = temp;
temp = this[0, 2];
this[0, 2] = this[2, 0];
this[2, 0] = temp;
temp = tr[0, 2];
tr[0, 2] = tr[2, 0];
tr[2, 0] = temp;
temp = this[1, 2];
this[1, 2] = this[2, 1];
this[2, 1] = temp;
temp = tr[1, 2];
tr[1, 2] = tr[2, 1];
tr[2, 1] = temp;
return tr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment