From f41497b4215d319d58ed8ed70a289690e6aa847d Mon Sep 17 00:00:00 2001 From: Taryn Hill Date: Tue, 31 Mar 2015 21:36:50 -0500 Subject: [PATCH] Allow `Defaults: image` in sequence definitions. --- OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs b/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs index e8c7197b7a..89cbdcdad2 100644 --- a/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs +++ b/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs @@ -36,6 +36,9 @@ namespace OpenRA.Mods.Common.Graphics { nodes.Remove("Defaults"); nodes = nodes.ToDictionary(kv => kv.Key, kv => MiniYaml.MergeStrict(kv.Value, defaults)); + + foreach (var n in nodes) + n.Value.Value = n.Value.Value ?? defaults.Value; } foreach (var kvp in nodes)