Reverted change of Node::ParentList from being a vector<Node*> back to a vector<Group*>

This commit is contained in:
Robert Osfield
2014-06-03 09:52:55 +00:00
parent 3dde165f14
commit 333a16a88d
6 changed files with 13 additions and 29 deletions

View File

@@ -104,8 +104,7 @@ public:
pitr != parents.end();
++pitr)
{
osg::Node* parent = *pitr;
parent->removeChild(node);
(*pitr)->removeChild(node);
}
}
}

View File

@@ -334,7 +334,7 @@ public:
// particle effect can be inserted into this.
osg::ref_ptr<osg::Node> hitNode = hit.nodePath.back();
osg::Node::ParentList parents = hitNode->getParents();
osg::Node* insertGroup = 0;
osg::Group* insertGroup = 0;
unsigned int numGroupsFound = 0;
for(osg::Node::ParentList::iterator itr=parents.begin();
itr!=parents.end();