Changed the Node::ParentList to be a list of osg::Node rather than osg::Group, and added addChild, removeChild, replaceChild virtual method to Node to enable code

to user code compile with minimal modifications to account for the new change to the Node ParentList.
This commit is contained in:
Robert Osfield
2014-05-13 08:43:07 +00:00
parent b2c7bacfe9
commit 12a737ae02
6 changed files with 43 additions and 18 deletions

View File

@@ -93,14 +93,14 @@ Node::~Node()
setStateSet(0);
}
void Node::addParent(osg::Group* node)
void Node::addParent(osg::Node* node)
{
OpenThreads::ScopedPointerLock<OpenThreads::Mutex> lock(getRefMutex());
_parents.push_back(node);
}
void Node::removeParent(osg::Group* node)
void Node::removeParent(osg::Node* node)
{
OpenThreads::ScopedPointerLock<OpenThreads::Mutex> lock(getRefMutex());