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

Method addSelectionToLayer

radiantcore/layers/LayerModule.cpp:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 void addSelectionToLayer(const cmd::ArgumentList& args)
169 {
170 if (args.size() != 1)
171 {
172 rError() << "Usage: " << COMMAND_ADDTOLAYER << " <LayerID> " << std::endl;
173 return;
174 }
175
176 DoWithMapLayerManager([&](ILayerManager& manager)
177 {
178 manager.addSelectionToLayer(args[0].getInt());
179 GlobalMapModule().setModified(true);
180 });
181 }
182
183 void moveSelectionToLayer(const cmd::ArgumentList& args)
184 {

Callers

nothing calls this directly

Calls 5

rErrorFunction · 0.85
DoWithMapLayerManagerFunction · 0.85
getIntMethod · 0.80
setModifiedMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected