fix repeated scale visuals removal/ensuring (#39432)

This commit is contained in:
slarticodefast 2025-08-06 20:54:50 +02:00 committed by Vanessa
parent caec3e6286
commit 77899f3688
1 changed files with 1 additions and 0 deletions

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