mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Merge branch 'develop' into feature/scenegraphloader
Conflicts: src/abuffer/abuffer.cpp src/rendering/renderengine.cpp src/scene/scene.cpp
This commit is contained in:
@@ -291,6 +291,17 @@ void SceneGraphNode::setParent(SceneGraphNode* parent)
|
||||
_parent = parent;
|
||||
}
|
||||
|
||||
bool SceneGraphNode::abandonChild(SceneGraphNode* child) {
|
||||
std::vector < SceneGraphNode* >::iterator it = std::find(_children.begin(), _children.end(), child);
|
||||
|
||||
if (it != _children.end()){
|
||||
_children.erase(it);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const psc& SceneGraphNode::position() const
|
||||
{
|
||||
return _ephemeris->position();
|
||||
|
||||
Reference in New Issue
Block a user