You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user