MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / find_owned_by

Function find_owned_by

scene/main/node.cpp:3205–3213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3203}
3204
3205static void find_owned_by(Node *p_by, Node *p_node, List<Node *> *p_owned) {
3206 if (p_node->get_owner() == p_by) {
3207 p_owned->push_back(p_node);
3208 }
3209
3210 for (int i = 0; i < p_node->get_child_count(); i++) {
3211 find_owned_by(p_by, p_node->get_child(i), p_owned);
3212 }
3213}
3214
3215void Node::replace_by(Node *p_node, bool p_keep_groups) {
3216 ERR_THREAD_GUARD

Callers 1

replace_byMethod · 0.85

Calls 4

get_ownerMethod · 0.45
push_backMethod · 0.45
get_child_countMethod · 0.45
get_childMethod · 0.45

Tested by

no test coverage detected