3DS: Add Mesh constructor with takes name

pull/1745/head
Turo Lamminen 2018-01-27 17:11:19 +02:00
parent 5463757688
commit b580064414
1 changed files with 8 additions and 0 deletions

View File

@ -505,6 +505,14 @@ struct Mesh : public MeshWithSmoothingGroups<D3DS::Face>
mName = szTemp; mName = szTemp;
} }
//! Constructor with explicit name
explicit Mesh(const std::string &name)
: mName(name)
{
}
//! Name of the mesh //! Name of the mesh
std::string mName; std::string mName;