summaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files
diff options
context:
space:
mode:
authoroisincar <oisincar@gmail.com>2018-07-18 23:59:30 +0100
committeroisincar <oisincar@gmail.com>2018-07-19 00:17:45 +0100
commit7a4d5931983335ea1bba41d9a45f17a3484b50c1 (patch)
tree903faa1d3b7086ea2de62d521e82527d456697f7 /modules/mono/glue/cs_files
parenta731bd58643da57f3c3846102c9173651ef7478b (diff)
Fix bug with Basis.Transposed()
Fix bug where Basis.Transposed() incorrectly updated local basis, and returned an unmodified copy. This also fixes Transform.Inverse().
Diffstat (limited to 'modules/mono/glue/cs_files')
-rw-r--r--modules/mono/glue/cs_files/Basis.cs18
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;
}