summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-01-05 21:04:37 +0300
committerYuri Sizov <yuris@humnom.net>2023-01-05 21:04:54 +0300
commit82c00c21e6d907a4be81f6cc404181acc7060265 (patch)
treea550104b5b23be3772fdcce77c58cf3d76bf1a91 /editor/editor_properties.cpp
parent1d14c054a12dacdc193b589e4afb0ef319ee2aae (diff)
downloadredot-engine-82c00c21e6d907a4be81f6cc404181acc7060265.tar.gz
Simplify some editor plugin logic and remove dead code
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 45de5cde47..ba42bbf3bd 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -3925,7 +3925,7 @@ void EditorPropertyResource::_open_editor_pressed() {
Ref<Resource> res = get_edited_object()->get(get_edited_property());
if (res.is_valid()) {
// May clear the editor so do it deferred.
- EditorNode::get_singleton()->call_deferred(SNAME("edit_item_resource"), res);
+ callable_mp(EditorNode::get_singleton(), &EditorNode::edit_item_resource).bind(res).call_deferred();
}
}
@@ -4189,7 +4189,6 @@ void EditorPropertyResource::_notification(int p_what) {
}
void EditorPropertyResource::_bind_methods() {
- ClassDB::bind_method(D_METHOD("_open_editor_pressed"), &EditorPropertyResource::_open_editor_pressed);
ClassDB::bind_method(D_METHOD("_fold_other_editors"), &EditorPropertyResource::_fold_other_editors);
}