Skip to content
Snippets Groups Projects
Commit 38747209 authored by Turo Lamminen's avatar Turo Lamminen
Browse files

ASE: Add BaseNode constructor which takes name

parent 1836b00f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment