From cd91e6c06b970b94829a888d46d99a6a3f757dbd Mon Sep 17 00:00:00 2001 From: JasperJRoth <38472993+JasperJRoth@users.noreply.github.com> Date: Wed, 13 Oct 2021 02:56:35 -0400 Subject: [PATCH] Crayon fix (#4848) * removed line that broke crayon decals * Removed rotation from crayon decals. --- Content.Client/Crayon/CrayonDecalVisualizer.cs | 5 ----- Content.Server/Crayon/CrayonComponent.cs | 1 - Content.Shared/Crayon/SharedCrayonComponent.cs | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Content.Client/Crayon/CrayonDecalVisualizer.cs b/Content.Client/Crayon/CrayonDecalVisualizer.cs index 83d7985a42..e886225b1e 100644 --- a/Content.Client/Crayon/CrayonDecalVisualizer.cs +++ b/Content.Client/Crayon/CrayonDecalVisualizer.cs @@ -23,11 +23,6 @@ namespace Content.Client.Crayon { sprite.LayerSetColor(0, Color.FromName(color)); } - - if (component.TryGetData(CrayonVisuals.Rotation, out Angle rotation)) - { - sprite.Rotation = rotation; - } } } } diff --git a/Content.Server/Crayon/CrayonComponent.cs b/Content.Server/Crayon/CrayonComponent.cs index 57dbfd2831..43cddd47cf 100644 --- a/Content.Server/Crayon/CrayonComponent.cs +++ b/Content.Server/Crayon/CrayonComponent.cs @@ -133,7 +133,6 @@ namespace Content.Server.Crayon { appearance.SetData(CrayonVisuals.State, SelectedState); appearance.SetData(CrayonVisuals.Color, _color); - appearance.SetData(CrayonVisuals.Rotation, eventArgs.User.Transform.LocalRotation); } if (_useSound != null) diff --git a/Content.Shared/Crayon/SharedCrayonComponent.cs b/Content.Shared/Crayon/SharedCrayonComponent.cs index d7269c7b76..6019a72300 100644 --- a/Content.Shared/Crayon/SharedCrayonComponent.cs +++ b/Content.Shared/Crayon/SharedCrayonComponent.cs @@ -41,8 +41,7 @@ namespace Content.Shared.Crayon public enum CrayonVisuals { State, - Color, - Rotation + Color } [Serializable, NetSerializable]