Merge pull request #94013 from KoBeWi/scrleanup
Misc script editor code cleanup
This commit is contained in:
@ -1158,22 +1158,9 @@ void ScriptEditor::trigger_live_script_reload(const String &p_script_path) {
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEditor::trigger_live_script_reload_all() {
|
||||
if (!pending_auto_reload && auto_reload_running_scripts) {
|
||||
call_deferred(SNAME("_live_auto_reload_running_scripts"));
|
||||
pending_auto_reload = true;
|
||||
reload_all_scripts = true;
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEditor::_live_auto_reload_running_scripts() {
|
||||
pending_auto_reload = false;
|
||||
if (reload_all_scripts) {
|
||||
EditorDebuggerNode::get_singleton()->reload_all_scripts();
|
||||
} else {
|
||||
EditorDebuggerNode::get_singleton()->reload_scripts(script_paths_to_reload);
|
||||
}
|
||||
reload_all_scripts = false;
|
||||
EditorDebuggerNode::get_singleton()->reload_scripts(script_paths_to_reload);
|
||||
script_paths_to_reload.clear();
|
||||
}
|
||||
|
||||
|
||||
@ -437,7 +437,6 @@ class ScriptEditor : public PanelContainer {
|
||||
|
||||
bool pending_auto_reload;
|
||||
bool auto_reload_running_scripts;
|
||||
bool reload_all_scripts = false;
|
||||
Vector<String> script_paths_to_reload;
|
||||
void _live_auto_reload_running_scripts();
|
||||
|
||||
@ -613,7 +612,6 @@ public:
|
||||
void update_docs_from_script(const Ref<Script> &p_script);
|
||||
|
||||
void trigger_live_script_reload(const String &p_script_path);
|
||||
void trigger_live_script_reload_all();
|
||||
|
||||
VSplitContainer *get_left_list_split() { return list_split; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user