summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-05-13 16:56:03 +0200
committerkobewi <kobewi4e@gmail.com>2024-05-13 23:41:07 +0200
commit413c11357d039a03a8dca440a01951a637ae936b (patch)
treee96f5b865d7158aa69fcf1e422ffafdb59dc2411 /editor/editor_data.cpp
parentde196227e17126fa18716c4ed8e61108584116dc (diff)
downloadredot-engine-413c11357d039a03a8dca440a01951a637ae936b.tar.gz
Use Core/Scene stringnames consistently
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r--editor/editor_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index bd1eef8e53..11fea8b728 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -1217,7 +1217,7 @@ void EditorSelection::add_node(Node *p_node) {
}
selection[p_node] = meta;
- p_node->connect("tree_exiting", callable_mp(this, &EditorSelection::_node_removed).bind(p_node), CONNECT_ONE_SHOT);
+ p_node->connect(SceneStringName(tree_exiting), callable_mp(this, &EditorSelection::_node_removed).bind(p_node), CONNECT_ONE_SHOT);
}
void EditorSelection::remove_node(Node *p_node) {
@@ -1234,7 +1234,7 @@ void EditorSelection::remove_node(Node *p_node) {
}
selection.erase(p_node);
- p_node->disconnect("tree_exiting", callable_mp(this, &EditorSelection::_node_removed));
+ p_node->disconnect(SceneStringName(tree_exiting), callable_mp(this, &EditorSelection::_node_removed));
}
bool EditorSelection::is_selected(Node *p_node) const {