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

Function IsNodeEnabledRecursive

engine/gui/src/gui.cpp:1820–1831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818 }
1819
1820 static bool IsNodeEnabledRecursive(HScene scene, uint16_t node_index)
1821 {
1822 InternalNode* node = &scene->m_Nodes[node_index];
1823 if (node->m_Node.m_Enabled && node->m_ParentIndex != INVALID_INDEX)
1824 {
1825 return IsNodeEnabledRecursive(scene, node->m_ParentIndex);
1826 }
1827 else
1828 {
1829 return node->m_Node.m_Enabled;
1830 }
1831 }
1832
1833 #define OLD_VERSION false
1834

Callers 2

UpdateAnimationsFunction · 0.85
IsNodeEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected