From b0d4ecc83f1143f1555a5a2fd8473fd1cfaed622 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 23 Aug 2022 15:14:44 -0400 Subject: [PATCH] Added interface section parsing to body --- parser/body.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/parser/body.go b/parser/body.go index a5bf767..3174e13 100644 --- a/parser/body.go +++ b/parser/body.go @@ -39,6 +39,14 @@ func (parser *ParsingOperation) parseBody () (err error) { parser.tree.objtSections[section.name] = section if err != nil { return } case "face": + var section *FaceSection + section, err = parser.parseFaceSection() + if parser.tree.faceSections == nil { + parser.tree.faceSections = + make(map[string] *FaceSection) + } + parser.tree.faceSections[section.name] = section + if err != nil { return } case "enum": var section *EnumSection section, err = parser.parseEnumSection()