SpriteView updates its size whenever the entity is set (#6362)

* SpriteView updates its size whenever the entity is set

* SpriteView recalculates its measure when the entity changes
This commit is contained in:
TGRCDev
2026-01-02 15:41:20 +00:00
committed by GitHub
parent 68f8d00931
commit 7b245260e3

View File

@@ -170,6 +170,7 @@ namespace Robust.Client.UserInterface.Controls
Entity = new(uid.Value, sprite, xform);
NetEnt = EntMan.GetNetEntity(uid);
InvalidateMeasure();
}
protected override Vector2 MeasureOverride(Vector2 availableSize)