Skip to content

Commit

Permalink
Experiment with directly nested included models
Browse files Browse the repository at this point in the history
Directly insert xml elements instead of calling
addNestedModel. This doesn't fully work yet.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Sep 2, 2020
1 parent 18b2bbd commit 52fe702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,8 @@ bool readXml(tinyxml2::XMLElement *_xml, ElementPtr _sdf, Errors &_errors)

if (_sdf->GetName() == "model")
{
addNestedModel(_sdf, includeSDF->Root(), _errors);
topLevelElem->SetParent(_sdf);
_sdf->InsertElement(topLevelElem);
}
else
{
Expand Down

0 comments on commit 52fe702

Please sign in to comment.