Detach to null & icon smoothing (#9268)

This commit is contained in:
Leon Friedrich
2022-06-29 15:24:34 +12:00
committed by GitHub
parent d48609c5c8
commit 6150a6d697

View File

@@ -155,10 +155,8 @@ namespace Content.Client.IconSmoothing
private void OnAnchorChanged(EntityUid uid, IconSmoothComponent component, ref AnchorStateChangedEvent args)
{
// Defer updating to next frame update. We do this because this unanchoring might be caused by a detach to
// null due to leaving PVS, in which case we can be a bit lazy. However, this event is raised before being
// sent to null-space, hence deferring.
_anchorChangedEntities.Enqueue(uid);
if (!args.Detaching)
_anchorChangedEntities.Enqueue(uid);
}
private void CalculateNewSprite(EntityUid uid,