MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / add

Method add

Engine/source/gui/worldEditor/terrainEditor.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235bool Selection::add(const GridInfo &info)
236{
237 PROFILE_SCOPE( TerrainEditor_Selection_Add );
238
239 S32 index = lookup(info.mGridPoint.gridPos);
240 if(index != -1)
241 return(false);
242
243 insert(info);
244 return(true);
245}
246
247bool Selection::getInfo(Point2I pos, GridInfo & info)
248{

Callers 3

resetSelWeightsMethod · 0.45
autoMaterialLayerMethod · 0.45
processMethod · 0.45

Calls 2

lookupFunction · 0.85
insertFunction · 0.85

Tested by

no test coverage detected