mirror of
https://github.com/godotengine/godot.git
synced 2026-04-19 02:11:33 +00:00
Fix breakpoints resetting on external editor save
This commit is contained in:
parent
65e73b3a5e
commit
246ce46513
2 changed files with 12 additions and 3 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "core/os/keyboard.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/string/fuzzy_search.h"
|
||||
#include "core/variant/dictionary.h"
|
||||
#include "core/version.h"
|
||||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/debugger/script_editor_debugger.h"
|
||||
|
|
@ -2546,7 +2547,9 @@ void ScriptEditor::_reload_scripts(bool p_refresh_only) {
|
|||
}
|
||||
|
||||
if (TextEditorBase *teb = Object::cast_to<TextEditorBase>(seb)) {
|
||||
Dictionary state = teb->get_edit_state();
|
||||
teb->reload_text();
|
||||
teb->set_edit_state(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue