ASE: Add Mesh constructor which takes name

pull/1745/head
Turo Lamminen 2018-01-27 18:03:57 +02:00
parent 3874720947
commit f3474fb399
1 changed files with 13 additions and 0 deletions

View File

@ -321,6 +321,19 @@ struct Mesh : public MeshWithSmoothingGroups<ASE::Face>, public BaseNode
iMaterialIndex = Face::DEFAULT_MATINDEX; iMaterialIndex = Face::DEFAULT_MATINDEX;
} }
//! Construction from an existing name
explicit Mesh(const std::string &name)
: BaseNode (BaseNode::Mesh, name)
, iMaterialIndex(Face::DEFAULT_MATINDEX)
, bSkip (false)
{
// use 2 texture vertex components by default
for (unsigned int c = 0; c < AI_MAX_NUMBER_OF_TEXTURECOORDS;++c)
this->mNumUVComponents[c] = 2;
}
//! List of all texture coordinate sets //! List of all texture coordinate sets
std::vector<aiVector3D> amTexCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS]; std::vector<aiVector3D> amTexCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];