Implemented KRNode::getParent()

--HG--
branch : nfb
This commit is contained in:
2013-11-18 23:52:03 -08:00
parent 19bf71938d
commit eee9be438d
2 changed files with 5 additions and 0 deletions

View File

@@ -450,6 +450,10 @@ const std::set<KRNode *> &KRNode::getChildren() {
return m_childNodes; return m_childNodes;
} }
KRNode *KRNode::getParent() {
return m_parentNode;
}
const std::string &KRNode::getName() const { const std::string &KRNode::getName() const {
return m_name; return m_name;
} }

View File

@@ -58,6 +58,7 @@ public:
void addChild(KRNode *child); void addChild(KRNode *child);
const std::set<KRNode *> &getChildren(); const std::set<KRNode *> &getChildren();
KRNode *getParent();
void setLocalTranslation(const KRVector3 &v, bool set_original = false); void setLocalTranslation(const KRVector3 &v, bool set_original = false);
void setLocalScale(const KRVector3 &v, bool set_original = false); void setLocalScale(const KRVector3 &v, bool set_original = false);