Update deferred calls to use Callables
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user