From 0f54a01d24fe848cb68ceaad08db3eac20b406d9 Mon Sep 17 00:00:00 2001 From: Ygg01 Date: Tue, 23 Feb 2021 03:05:24 +0100 Subject: [PATCH] Fix bug with animated sprites not being initially animated (#3381) Sets auto animated of client inventory to true, enables cosmos bedsheets to be animated when first equipping. Fixes #1144 --- .../Components/HUD/Inventory/ClientInventoryComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs b/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs index d7c4076a89..987b229795 100644 --- a/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs +++ b/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs @@ -186,6 +186,7 @@ namespace Content.Client.GameObjects.Components.HUD.Inventory var (rsi, state) = data.Value; _sprite.LayerSetVisible(slot, true); _sprite.LayerSetState(slot, state, rsi); + _sprite.LayerSetAutoAnimated(slot, true); if (slot == Slots.INNERCLOTHING) {