MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / removeSceneObserver

Method removeSceneObserver

radiantcore/scenegraph/SceneGraph.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void SceneGraph::removeSceneObserver(Graph::Observer* observer)
45{
46 // Cycle through the list of observers and call the moved method
47 for (ObserverList::iterator i = _sceneObservers.begin(); i != _sceneObservers.end(); ++i)
48 {
49 Graph::Observer* registered = *i;
50
51 if (registered == observer)
52 {
53 _sceneObservers.erase(i);
54 return; // Don't continue the loop, the iterator is obsolete
55 }
56 }
57}
58
59void SceneGraph::sceneChanged()
60{

Callers 5

destroyXYViewMethod · 0.80
setEnabledMethod · 0.80
shutdownModuleMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected