Codegen in modidier support

This commit is contained in:
2026-01-29 23:15:39 +03:00
parent b4280cd06d
commit 84f9840024
17 changed files with 316 additions and 75 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ namespace mROA.Codegen
{
public static TemplateDocument CloneInnerTemplate(this TemplateDocument template, string tag)
{
var innerTemplate = template[tag] as InnerTemplateSection
var innerTemplate = template[tag] as InnerTemplateSection
?? throw new InvalidOperationException();
var clone = innerTemplate.InnerTemplate.Clone();
return (TemplateDocument)clone;