void CompiledGraph::erase (scene::Instance* instance) { notifyErase(instance); // Notify the graph tree model about the change sceneChanged(); for (ObserverList::iterator i = _sceneObservers.begin(); i != _sceneObservers.end(); ++i) { (*i)->onSceneNodeErase(*instance); } graph_tree_model_erase(_treeModel, *instance); m_instances.erase(PathConstReference(instance->path())); }
void EntityList_Destroy() { delete g_EntityList; graph_tree_model_erase(scene_graph_get_tree_model(), StaticNullSelectedInstance::instance()); }