[3.x] Fix Translated method in C# affecting the original transform

This commit is contained in:
Aaron Franke 2022-07-30 11:43:39 -05:00
parent 284dbef733
commit 4d6c609e50
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 3 additions and 3 deletions

View File

@ -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)
));
}