mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +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:
commit
621cadcf65
6 changed files with 43 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue