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

Function adjustForNameRemoval

Engine/source/ts/tsShapeEdit.cpp:331–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330/// Adjust the nameIndex for elements in the group
331template<class T> void adjustForNameRemoval(Vector<T>& group, S32 nameIndex)
332{
333 for (S32 i = 0; i < group.size(); i++)
334 if (group[i].nameIndex > nameIndex)
335 group[i].nameIndex--;
336}
337
338bool TSShape::removeName(const String& name)
339{

Callers 1

removeNameMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected