Browse Source

[C#] Fix `Transform3D.InterpolateWith` applying rotation before scale

(cherry picked from commit e2ed63b313e3eff714e32f2cd2d01db9f0e2ea9d)
kleonc 1 year ago
parent
commit
44f1ca7ea9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs

@@ -238,7 +238,7 @@ namespace Godot
 
         private void Rotate(Quat quaternion)
         {
-            this *= new Basis(quaternion);
+            this = new Basis(quaternion) * this;
         }
 
         private void SetDiagonal(Vector3 diagonal)