ASE: Add BaseNode constructor which takes name

pull/1745/head
Turo Lamminen 2018-01-27 17:59:09 +02:00
parent 1836b00f51
commit 3874720947
1 changed files with 13 additions and 0 deletions

View File

@ -264,6 +264,19 @@ struct BaseNode
mTargetPosition.x = qnan;
}
//! Construction from an existing name
BaseNode(Type _mType, const std::string &name)
: mType (_mType)
, mName (name)
, mProcessed (false)
{
// Set mTargetPosition to qnan
const ai_real qnan = get_qnan();
mTargetPosition.x = qnan;
}
//! Name of the mesh
std::string mName;