From 4d6c609e5086f4706851567357c215355678d075 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 --- 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 4e2939f3af5..75de804d8f8 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) )); }