summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-03-27 19:30:49 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-03-31 18:33:02 +0200
commita29f2bfe540791b96cb4ce43bb0dee6bd2019ce2 (patch)
tree3f2a899ba8c692c4bb25013ec5b5d7e7d1e3fac8 /scene/main
parenta5eed70fa2edcf755d6abea2077232e38381449b (diff)
Rename `Node.print_stray_nodes()` to `Node.print_orphan_nodes()`
The "orphan" terminology is already used elsewhere.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/node.cpp8
-rw-r--r--scene/main/node.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 208bbe4d72..98629b37b2 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -2487,11 +2487,11 @@ static void _Node_debug_sn(Object *p_obj) {
}
#endif // DEBUG_ENABLED
-void Node::_print_stray_nodes() {
- print_stray_nodes();
+void Node::_print_orphan_nodes() {
+ print_orphan_nodes();
}
-void Node::print_stray_nodes() {
+void Node::print_orphan_nodes() {
#ifdef DEBUG_ENABLED
ObjectDB::debug_objects(_Node_debug_sn);
#endif
@@ -2703,7 +2703,7 @@ void Node::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_process_mode", "mode"), &Node::set_process_mode);
ClassDB::bind_method(D_METHOD("get_process_mode"), &Node::get_process_mode);
ClassDB::bind_method(D_METHOD("can_process"), &Node::can_process);
- ClassDB::bind_method(D_METHOD("print_stray_nodes"), &Node::_print_stray_nodes);
+ ClassDB::bind_method(D_METHOD("print_orphan_nodes"), &Node::_print_orphan_nodes);
ClassDB::bind_method(D_METHOD("set_display_folded", "fold"), &Node::set_display_folded);
ClassDB::bind_method(D_METHOD("is_displayed_folded"), &Node::is_displayed_folded);
diff --git a/scene/main/node.h b/scene/main/node.h
index f5fbcf6587..59674c7021 100644
--- a/scene/main/node.h
+++ b/scene/main/node.h
@@ -169,7 +169,7 @@ private:
void _propagate_ready();
void _propagate_exit_tree();
void _propagate_after_exit_tree();
- void _print_stray_nodes();
+ void _print_orphan_nodes();
void _propagate_process_owner(Node *p_owner, int p_pause_notification, int p_enabled_notification);
Array _get_node_and_resource(const NodePath &p_path);
@@ -436,7 +436,7 @@ public:
void request_ready();
- static void print_stray_nodes();
+ static void print_orphan_nodes();
#ifdef TOOLS_ENABLED
String validate_child_name(Node *p_child);