diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-07-20 06:47:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 06:47:15 +0200 |
commit | a85f0f89fec8f7eea309d6fa3b7e2b490cc59e91 (patch) | |
tree | cced158c773ef2089dd1cfc726f556d6547b070f | |
parent | b2d7641a0dd65a782f981fb1f73c5e84a90f816c (diff) | |
parent | 7a4d5931983335ea1bba41d9a45f17a3484b50c1 (diff) |
Merge pull request #20257 from oisincar/fix_basis
Fix bug with Basis.Transposed()
-rw-r--r-- | modules/mono/glue/cs_files/Basis.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/mono/glue/cs_files/Basis.cs b/modules/mono/glue/cs_files/Basis.cs index aa49a5e04f..c280d32c61 100644 --- a/modules/mono/glue/cs_files/Basis.cs +++ b/modules/mono/glue/cs_files/Basis.cs @@ -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; } |