Update deferred calls to use Callables
This commit is contained in:
parent
8297ec949b
commit
0e8f90f4c8
92 changed files with 192 additions and 350 deletions
|
|
@ -3013,7 +3013,7 @@ void EditorPropertyResource::_resource_selected(const Ref<Resource> &p_resource,
|
|||
if (extensions.find(parent.get_extension()) && (!EditorNode::get_singleton()->get_edited_scene() || EditorNode::get_singleton()->get_edited_scene()->get_scene_file_path() != parent)) {
|
||||
// If the resource belongs to another (non-imported) scene, edit it in that scene instead.
|
||||
if (!FileAccess::exists(parent + ".import")) {
|
||||
EditorNode::get_singleton()->call_deferred("edit_foreign_resource", p_resource);
|
||||
callable_mp(EditorNode::get_singleton(), &EditorNode::edit_foreign_resource).call_deferred(p_resource);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue