Browse Source

Merge pull request #63684 from aaronfranke/translated

Fix TranslatedLocal method in C# affecting the original transform
Rémi Verschelde 3 years ago
parent
commit
c2d55a4e1a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs

+ 3 - 3
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)
             ));
         }