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

Method moveSelectionToLayer

radiantcore/layers/LayerModule.cpp:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void moveSelectionToLayer(const cmd::ArgumentList& args)
184 {
185 if (args.size() != 1)
186 {
187 rError() << "Usage: " << COMMAND_MOVETOLAYER << " <LayerID> " << std::endl;
188 return;
189 }
190
191 DoWithMapLayerManager([&](ILayerManager& manager)
192 {
193 manager.moveSelectionToLayer(args[0].getInt());
194 GlobalMapModule().setModified(true);
195 });
196 }
197
198 void removeSelectionFromLayer(const cmd::ArgumentList& args)
199 {

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