fix repeated scale visuals removal/ensuring (#39432)

This commit is contained in:
slarticodefast
2025-08-06 20:54:50 +02:00
committed by GitHub
parent ffccef2358
commit 2e0b11ea51

View File

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