Skip to content

Commit 60d37f1

Browse files
committed
Merge pull request godotengine#89843 from kleonc/csharp-transform3d-interpolate-with-first-scale-then-rotate
[C#] Fix `Transform3D.InterpolateWith` applying rotation before scale
2 parents cff7de0 + e2ed63b commit 60d37f1

File tree

1 file changed

+1
-1
lines changed
  • modules/mono/glue/GodotSharp/GodotSharp/Core

1 file changed

+1
-1
lines changed

modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ internal void SetQuaternionScale(Quaternion quaternion, Vector3 scale)
212212

213213
private void Rotate(Quaternion quaternion)
214214
{
215-
this *= new Basis(quaternion);
215+
this = new Basis(quaternion) * this;
216216
}
217217

218218
private void SetDiagonal(Vector3 diagonal)

0 commit comments

Comments
 (0)