fix repeated scale visuals removal/ensuring (#39432)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user