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

Function getAllLayersOfSelection

radiantcore/map/algorithm/Export.cpp:34–45  ·  view source on GitHub ↗

Returns the union set of layer IDs of the current selection

Source from the content-addressed store, hash-verified

32
33// Returns the union set of layer IDs of the current selection
34scene::LayerList getAllLayersOfSelection()
35{
36 scene::LayerList unionSet;
37
38 GlobalSelectionSystem().foreachSelected([&](const scene::INodePtr& node)
39 {
40 const auto& layers = node->getLayers();
41 unionSet.insert(layers.begin(), layers.end());
42 });
43
44 return unionSet;
45}
46
47void exportSelectedAsModel(const model::ModelExportOptions& options)
48{

Callers 1

exportSelectedAsModelFunction · 0.85

Calls 4

foreachSelectedMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected