mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
Reload built in script to get its methods on signal connection
This commit is contained in:
parent
2267646bf4
commit
5aa8b9ee61
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user