3DS: Add Mesh constructor with takes name

This commit is contained in:
Turo Lamminen
2018-01-27 18:48:57 +02:00
parent 5463757688
commit b580064414
+8
View File
@@ -505,6 +505,14 @@ struct Mesh : public MeshWithSmoothingGroups<D3DS::Face>
mName = szTemp;
}
//! Constructor with explicit name
explicit Mesh(const std::string &name)
: mName(name)
{
}
//! Name of the mesh
std::string mName;