summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-12-18 15:46:56 +0100
committerkobewi <kobewi4e@gmail.com>2024-01-09 16:11:47 +0100
commit0e8f90f4c8b4b353d3ac372e5f00493a2f0bd136 (patch)
tree9b83683d86b94f9fdf7d6d58594d2b28d88a13ab /editor/editor_data.cpp
parent8297ec949bad8029372da13e1d4e36599989b5ae (diff)
downloadredot-engine-0e8f90f4c8b4b353d3ac372e5f00493a2f0bd136.tar.gz
Update deferred calls to use Callables
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r--editor/editor_data.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index fe8c42ea3b..5f77959127 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -1242,7 +1242,6 @@ void EditorSelection::_bind_methods() {
ClassDB::bind_method(D_METHOD("remove_node", "node"), &EditorSelection::remove_node);
ClassDB::bind_method(D_METHOD("get_selected_nodes"), &EditorSelection::get_selected_nodes);
ClassDB::bind_method(D_METHOD("get_transformable_selected_nodes"), &EditorSelection::_get_transformable_selected_nodes);
- ClassDB::bind_method(D_METHOD("_emit_change"), &EditorSelection::_emit_change);
ADD_SIGNAL(MethodInfo("selection_changed"));
}
@@ -1290,7 +1289,7 @@ void EditorSelection::update() {
changed = false;
if (!emitted) {
emitted = true;
- call_deferred(SNAME("_emit_change"));
+ callable_mp(this, &EditorSelection::_emit_change).call_deferred();
}
}