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

Method pre

radiantcore/map/algorithm/Models.cpp:36–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35public:
36 bool pre(const scene::INodePtr& node)
37 {
38 model::ModelNodePtr model = Node_getModel(node);
39
40 if (model)
41 {
42 _modelNames.insert(model->getIModel().getModelPath());
43
44 IEntityNodePtr ent = std::dynamic_pointer_cast<IEntityNode>(node->getParent());
45
46 if (ent)
47 {
48 _entities.insert(ent);
49 }
50
51 return false;
52 }
53
54 return true;
55 }
56
57 void visit(const scene::INodePtr& node) const
58 {

Callers

nothing calls this directly

Calls 4

Node_getModelFunction · 0.85
insertMethod · 0.45
getModelPathMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected