MCPcopy Create free account
hub / github.com/defold/defold / MoveDown

Function MoveDown

engine/gameobject/src/gameobject/gameobject.cpp:1748–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1746 }
1747
1748 static void MoveDown(Collection* collection, Instance* instance)
1749 {
1750 /*
1751 * Move instance down in hierarchy
1752 */
1753
1754 assert(instance->m_Depth < MAX_HIERARCHICAL_DEPTH - 1);
1755 EraseSwapLevelIndex(collection, instance);
1756 instance->m_Depth++;
1757 InsertInstanceInLevelIndex(collection, instance);
1758 }
1759
1760 static void MoveAllDown(Collection* collection, Instance* instance)
1761 {

Callers 1

MoveAllDownFunction · 0.85

Calls 3

EraseSwapLevelIndexFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected