3DS: Add Node constructor which takes name

pull/1745/head
Turo Lamminen 2018-01-27 17:24:47 +02:00
parent c0c06093b4
commit 56a19ac492
1 changed files with 15 additions and 0 deletions

View File

@ -568,6 +568,21 @@ struct Node
aScalingKeys.reserve (20);
}
explicit Node(const std::string &name)
: mParent(NULL)
, mName(name)
, mInstanceNumber(0)
, mHierarchyPos (0)
, mHierarchyIndex (0)
, mInstanceCount (1)
{
aRotationKeys.reserve (20);
aPositionKeys.reserve (20);
aScalingKeys.reserve (20);
}
~Node()
{
for (unsigned int i = 0; i < mChildren.size();++i)