Allow sequence blocks to remove inherited node Defaults.
This commit is contained in:
@@ -275,7 +275,9 @@ namespace OpenRA
|
||||
resolved.Add(kv.Key, new MiniYaml(kv.Value.Value, children));
|
||||
}
|
||||
|
||||
return resolved.Select(kv => new MiniYamlNode(kv.Key, kv.Value)).ToList();
|
||||
// Resolve any top-level removals (e.g. removing whole actor blocks)
|
||||
var nodes = new MiniYaml("", resolved.Select(kv => new MiniYamlNode(kv.Key, kv.Value)).ToList());
|
||||
return ResolveInherits("", nodes, tree, new Dictionary<string, MiniYamlNode.SourceLocation>());
|
||||
}
|
||||
|
||||
static void MergeIntoResolved(MiniYamlNode overrideNode, List<MiniYamlNode> existingNodes,
|
||||
|
||||
Reference in New Issue
Block a user