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

Function TraverseGetRoot

engine/gameobject/src/gameobject/gameobject_profile.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199// ********************************************************************************************
200
201bool TraverseGetRoot(HRegister regist, SceneNode* node)
202{
203 DM_MUTEX_SCOPED_LOCK(regist->m_Mutex);
204 if (regist->m_Collections.Empty())
205 return false;
206
207 Collection* collection = regist->m_Collections[0];
208 node->m_Node = (uint64_t)collection->m_HCollection;
209 node->m_Type = SCENE_NODE_TYPE_COLLECTION;
210 node->m_Collection = collection->m_HCollection;
211 return true;
212}
213
214SceneNodeIterator TraverseIterateChildren(SceneNode* node)
215{

Callers 4

TEST_FFunction · 0.85

Calls 1

EmptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.68