diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-26 20:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 20:24:27 +0100 |
commit | 30c5286936298055951ce5c428640e96fa1ddd51 (patch) | |
tree | 75a626413503296af7b25f316e24fe09e16e7c50 | |
parent | 539b9e09e4436d93037e4a0d5dd07610a3837ba5 (diff) | |
parent | 10fa752ae7ea95c5fc94579d10c5d72888c18802 (diff) |
Merge pull request #7857 from Hinsbart/external_script_break
Don't switch to script on breakpoint hit when using external editor.
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index b7d8cc2ba9..c7639dd4d3 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -292,6 +292,10 @@ String ScriptEditor::_get_debug_tooltip(const String&p_text,Node *_se) { void ScriptEditor::_breaked(bool p_breaked,bool p_can_debug) { + if (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) { + return; + } + debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), !(p_breaked && p_can_debug)); debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_STEP), !(p_breaked && p_can_debug) ); debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), p_breaked ); |