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

Method freeMap

radiantcore/map/Map.cpp:474–492  ·  view source on GitHub ↗

free all map elements, reinitialize the structures that depend on them

Source from the content-addressed store, hash-verified

472
473// free all map elements, reinitialize the structures that depend on them
474void Map::freeMap()
475{
476 // Abort any ongoing merge
477 abortMergeOperation();
478
479 // Fire the map unloading event,
480 // This will de-select stuff, clear the pointfile, etc.
481 emitMapEvent(MapUnloading);
482
483 setWorldspawn(scene::INodePtr());
484
485 GlobalSceneGraph().setRoot(scene::IMapRootNodePtr());
486
487 emitMapEvent(MapUnloaded);
488
489 // Reset the resource pointer
490 _modifiedStatusListener.disconnect();
491 _resource.reset();
492}
493
494bool Map::isModified() const
495{

Callers 2

newMapMethod · 0.80
openMapFromArchiveMethod · 0.80

Calls 3

setRootMethod · 0.80
disconnectMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected