diff --git a/src/Mod/Mesh/App/Core/MeshIO.cpp b/src/Mod/Mesh/App/Core/MeshIO.cpp index 531e47dccb..402bdcb04a 100644 --- a/src/Mod/Mesh/App/Core/MeshIO.cpp +++ b/src/Mod/Mesh/App/Core/MeshIO.cpp @@ -2687,14 +2687,16 @@ bool MeshOutput::SaveInventor (std::ostream &rstrOut) const // Header info Base::InventorBuilder builder(rstrOut); builder.beginSeparator(); - builder.addInfo("Created by FreeCAD "); + Base::InfoItem info{"Created by FreeCAD "}; + builder.addNode(info); std::stringstream str; str << "Triangle mesh contains " << _rclMesh.CountPoints() << " vertices and " << _rclMesh.CountFacets() << " faces"; - builder.addLabel(str.str().c_str()); + Base::LabelItem label{str.str().c_str()}; + builder.addNode(label); // write out the normals of the facets builder.beginNormal();