Fix icon smoothing not applying after entities are deleted.

This commit is contained in:
Pieter-Jan Briers
2019-10-14 17:09:45 +02:00
parent def32d80dd
commit 7de97eeb2c
2 changed files with 6 additions and 4 deletions

View File

@@ -200,10 +200,10 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
/// <inheritdoc />
protected override void Shutdown()
{
base.Shutdown();
SnapGrid.OnPositionChanged -= SnapGridOnPositionChanged;
Owner.EntityManager.RaiseEvent(Owner, new IconSmoothDirtyEvent(_lastPosition, SnapGrid.Offset, Mode));
base.Shutdown();
}
private void SnapGridOnPositionChanged()