diff -r e628fc2e0c72 -r 03f8e6d42e13 src/parser.cpp --- a/src/parser.cpp Thu Mar 03 21:13:16 2022 +0200 +++ b/src/parser.cpp Fri Mar 04 11:37:50 2022 +0200 @@ -233,7 +233,7 @@ * @brief Parses the model body into the given model. * @param editor Handle to model edit context */ -void Parser::parseBody(Model::EditContext& editor) +void Parser::parseBody(Model& model) { bool invertNext = false; while (not this->device.atEnd()) @@ -249,10 +249,10 @@ continue; } std::unique_ptr object = parseFromString(line); - auto id = editor.append(std::move(object)); + model.append(std::move(object)); if (invertNext) { - editor.invertObject(id); + model[model.size() - 1]->invert(); } invertNext = false; }