summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHakim <hakim.rouatbi@gmail.com>2023-03-06 16:20:30 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:13:30 +0200
commit60ceecb1ab070a2b3f9f3d91e904e9b25f286dd7 (patch)
tree09281612c332eba10ab5e46d6f9086dfb3650bd0 /editor
parentde08766656c1a75245baa406208473dc78397a9d (diff)
Reload built in script to get its methods on signal connection
(cherry picked from commit 5aa8b9ee61ca80f186d0f1dfed5418fe4278f157)
Diffstat (limited to 'editor')
-rw-r--r--editor/connections_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index 20a9e633a8..befe84f311 100644
--- a/editor/connections_dialog.cpp
+++ b/editor/connections_dialog.cpp
@@ -343,6 +343,9 @@ void ConnectDialog::_update_method_tree() {
si_item->set_icon(0, get_theme_icon(SNAME("Script"), SNAME("EditorIcons")));
si_item->set_selectable(0, false);
+ if (si->get_script()->is_built_in()) {
+ si->get_script()->reload();
+ }
List<MethodInfo> methods;
si->get_method_list(&methods);
methods = _filter_method_list(methods, signal_info, search_string);