(Node) Added name getter/setter

Former-commit-id: 56ec0721abfba836a12c8a2de7f7c909f58a6c37
This commit is contained in:
Lynix
2013-03-02 01:33:58 +01:00
parent 2686fe86a0
commit 636b9d3f50
2 changed files with 12 additions and 0 deletions

View File

@@ -95,6 +95,11 @@ NzVector3f NzNode::GetInitialScale() const
return m_initialScale;
}
const NzString& NzNode::GetName() const
{
return m_name;
}
nzNodeType NzNode::GetNodeType() const
{
return nzNodeType_Default;
@@ -344,6 +349,11 @@ void NzNode::SetInitialScale(float scaleX, float scaleY, float scaleZ)
Invalidate();
}
void NzNode::SetName(const NzString& name)
{
m_name = name;
}
void NzNode::SetParent(const NzNode* node, bool keepDerived)
{
if (m_parent == node)