aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-19 22:07:07 -0300
committerJuan Linietsky2016-06-19 22:07:07 -0300
commit00bc06b50bb1c688e6481ae8fbfab0a758b83dad (patch)
tree3e59166911906ee3fb606c3f9e676b75b22b0704 /tools/editor/plugins/script_editor_plugin.h
parent0db02f26b66ba4e3ac671607ba85fc794ae698fa (diff)
downloadgodot-00bc06b50bb1c688e6481ae8fbfab0a758b83dad.tar.gz
godot-00bc06b50bb1c688e6481ae8fbfab0a758b83dad.tar.zst
godot-00bc06b50bb1c688e6481ae8fbfab0a758b83dad.zip
Make sure that scripts are reloaded if needed when they enter editing, fixes #4456
Diffstat (limited to '')
-rw-r--r--tools/editor/plugins/script_editor_plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.h b/tools/editor/plugins/script_editor_plugin.h
index 3d723adfe..0636190a4 100644
--- a/tools/editor/plugins/script_editor_plugin.h
+++ b/tools/editor/plugins/script_editor_plugin.h
@@ -232,7 +232,7 @@ class ScriptEditor : public VBoxContainer {
void _resave_scripts(const String& p_str);
void _reload_scripts();
- bool _test_script_times_on_disk();
+ bool _test_script_times_on_disk(Ref<Script> p_for_script=Ref<Script>());
void _close_current_tab();
@@ -291,7 +291,7 @@ class ScriptEditor : public VBoxContainer {
void _go_to_tab(int p_idx);
void _update_history_pos(int p_new_pos);
void _update_script_colors();
- void _update_modified_scripts_for_external_editor();
+ void _update_modified_scripts_for_external_editor(Ref<Script> p_for_script=Ref<Script>());
int file_dialog_option;
void _file_dialog_action(String p_file);