]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix repeated scale visuals removal/ensuring (#39432)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 6 Aug 2025 18:54:50 +0000 (20:54 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Aug 2025 18:54:50 +0000 (20:54 +0200)
Content.Shared/Sprite/SharedScaleVisualsSystem.cs

index fd2a522cd0f177458e6ffc32a5a1775c87ec63ef..408f5984b13730a8941452b2cd0dc3996a1f1b17 100644 (file)
@@ -27,6 +27,7 @@ public abstract class SharedScaleVisualsSystem : EntitySystem
 
     protected virtual void ResetScale(Entity<ScaleVisualsComponent> ent)
     {
+        _appearance.RemoveData(ent.Owner, ScaleVisuals.Scale);
         var ev = new ScaleEntityEvent(ent.Owner, Vector2.One);
         RaiseLocalEvent(ent.Owner, ref ev);
     }