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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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);
}