Fix initial render state for walls.

This commit is contained in:
Paul Chote
2016-04-17 16:30:41 -04:00
parent 183e5ae7ab
commit 08100dc49b

View File

@@ -140,6 +140,9 @@ namespace OpenRA.Mods.Common.Traits.Render
{
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), () => adjacent);
UpdateNeighbours(self);
// Set the initial animation frame before the render tick (for frozen actor previews)
self.World.AddFrameEndTask(_ => DefaultAnimation.Tick());
}
static void UpdateNeighbours(Actor self)