diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-30 20:17:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 20:17:40 +0200 |
commit | c2d55a4e1a353b75eb598277e9a6403fc6bfc4d5 (patch) | |
tree | 3c657a633eb51a98e18ed90fe0899f6508d19e3b | |
parent | cca072aa8672633a235e9187ee6873d9f165e003 (diff) | |
parent | ab4b5af28620152a58fa6f85040999ae3294e3fb (diff) |
Merge pull request #63684 from aaronfranke/translated
Fix TranslatedLocal method in C# affecting the original transform
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs index 41565bf680..7f03a8930d 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs @@ -243,9 +243,9 @@ namespace Godot { return new Transform3D(basis, new Vector3 ( - origin[0] += basis.Row0.Dot(offset), - origin[1] += basis.Row1.Dot(offset), - origin[2] += basis.Row2.Dot(offset) + origin[0] + basis.Row0.Dot(offset), + origin[1] + basis.Row1.Dot(offset), + origin[2] + basis.Row2.Dot(offset) )); } |