Detach to null & icon smoothing (#9268)
This commit is contained in:
@@ -155,10 +155,8 @@ namespace Content.Client.IconSmoothing
|
|||||||
|
|
||||||
private void OnAnchorChanged(EntityUid uid, IconSmoothComponent component, ref AnchorStateChangedEvent args)
|
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
|
if (!args.Detaching)
|
||||||
// null due to leaving PVS, in which case we can be a bit lazy. However, this event is raised before being
|
_anchorChangedEntities.Enqueue(uid);
|
||||||
// sent to null-space, hence deferring.
|
|
||||||
_anchorChangedEntities.Enqueue(uid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CalculateNewSprite(EntityUid uid,
|
private void CalculateNewSprite(EntityUid uid,
|
||||||
|
|||||||
Reference in New Issue
Block a user