[3.x] Fix Translated method in C# affecting the original transform
(cherry picked from commit 4d6c609e50
)
This commit is contained in:
parent
514073b367
commit
60d34604d5
|
@ -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)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue