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

Function MoveUp

engine/gameobject/src/gameobject/gameobject.cpp:1320–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318 }
1319
1320 static void MoveUp(Collection* collection, Instance* instance)
1321 {
1322 /*
1323 * Move instance up in hierarchy
1324 */
1325
1326 assert(instance->m_Depth > 0);
1327 EraseSwapLevelIndex(collection, instance);
1328 instance->m_Depth--;
1329 InsertInstanceInLevelIndex(collection, instance);
1330 }
1331
1332 static void MoveAllUp(Collection* collection, Instance* instance)
1333 {

Callers 1

MoveAllUpFunction · 0.85

Calls 3

EraseSwapLevelIndexFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected