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

Method removeModel

radiantcore/model/ModelCache.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void ModelCache::removeModel(const std::string& modelPath)
96{
97 // greebo: Disable the modelcache. During map::clear(), the nodes
98 // get cleared, which might trigger a loopback to insert().
99 _enabled = false;
100
101 ModelMap::iterator found = _modelMap.find(modelPath);
102
103 if (found != _modelMap.end())
104 {
105 _modelMap.erase(found);
106 }
107
108 // Allow usage of the modelnodemap again.
109 _enabled = true;
110}
111
112void ModelCache::clear()
113{

Callers 5

onRemoveModelFromSkinMethod · 0.45
onNewSkinMethod · 0.45
TEST_FFunction · 0.45
refreshSelectedModelsFunction · 0.45
refreshModelsByPathFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected