Replace Matrix3 with System.Numerics.Matrix3x2 (#27443)
Replace Matrix3 with Matrix3x2
This commit is contained in:
@@ -51,7 +51,7 @@ public sealed class DecalPlacementOverlay : Overlay
|
||||
var handle = args.WorldHandle;
|
||||
handle.SetTransform(worldMatrix);
|
||||
|
||||
var localPos = invMatrix.Transform(mousePos.Position);
|
||||
var localPos = Vector2.Transform(mousePos.Position, invMatrix);
|
||||
|
||||
if (snap)
|
||||
{
|
||||
@@ -63,6 +63,6 @@ public sealed class DecalPlacementOverlay : Overlay
|
||||
var box = new Box2Rotated(aabb, rotation, localPos);
|
||||
|
||||
handle.DrawTextureRect(_sprite.Frame0(decal.Sprite), box, color);
|
||||
handle.SetTransform(Matrix3.Identity);
|
||||
handle.SetTransform(Matrix3x2.Identity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user