From 60d34604d592cf02ba3e3af00a2368193dbb41c5 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 30 Jul 2022 11:43:39 -0500 Subject: [PATCH] [3.x] Fix Translated method in C# affecting the original transform (cherry picked from commit 4d6c609e5086f4706851567357c215355678d075) --- modules/mono/glue/GodotSharp/GodotSharp/Core/Transform.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform.cs index 7c8a9a292b3..2e6af5f26d9 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform.cs @@ -241,9 +241,9 @@ namespace Godot { return new Transform(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) )); }