From c5a0b18be14f41b41efd7836e4011c9cf5cc88ba Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Sun, 5 Sep 2021 17:23:47 +1000 Subject: [PATCH] Fix icon smoothing on rotated grid --- Content.Client/IconSmoothing/IconSmoothComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/IconSmoothing/IconSmoothComponent.cs b/Content.Client/IconSmoothing/IconSmoothComponent.cs index bf2ca481ba..02c608f53f 100644 --- a/Content.Client/IconSmoothing/IconSmoothComponent.cs +++ b/Content.Client/IconSmoothing/IconSmoothComponent.cs @@ -239,7 +239,8 @@ namespace Content.Client.IconSmoothing cornerNW |= CornerFill.Diagonal; } - switch (Owner.Transform.WorldRotation.GetCardinalDir()) + // Local is fine as we already know it's parented to the grid (due to the way anchoring works). + switch (Owner.Transform.LocalRotation.GetCardinalDir()) { case Direction.North: return (cornerSW, cornerSE, cornerNE, cornerNW);