1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #97168 from Hilderin/fix-reloading-scripts-already-in-use

Fix reloading scripts already in use
This commit is contained in:
Rémi Verschelde
2024-09-20 21:35:08 +02:00
committed by GitHub
6 changed files with 43 additions and 16 deletions

View File

@@ -1483,7 +1483,7 @@ void ScriptEditor::_menu_option(int p_option) {
current->apply_code();
Error err = scr->reload(false); // Always hard reload the script before running.
Error err = scr->reload(true); // Always hard reload the script before running.
if (err != OK || !scr->is_valid()) {
EditorToaster::get_singleton()->popup_str(TTR("Cannot run the script because it contains errors, check the output log."), EditorToaster::SEVERITY_WARNING);
return;