aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas2017-02-20 21:22:50 +0100
committerRémi Verschelde2017-03-18 20:13:59 +0100
commit7bf7fe854f1d3d7eec53d7d199c908a3907ce138 (patch)
tree736a6ca46fad0d1cfd385da6ec919fe08591bdbc
parent77cb8f058dcf9d6a5ac59cc6c791a2e9e6df61b6 (diff)
downloadgodot-7bf7fe854f1d3d7eec53d7d199c908a3907ce138.tar.gz
godot-7bf7fe854f1d3d7eec53d7d199c908a3907ce138.tar.zst
godot-7bf7fe854f1d3d7eec53d7d199c908a3907ce138.zip
Don't switch to script on breakpoint hit when using external editor.
Fixes #7705 (cherry picked from commit 10fa752ae7ea95c5fc94579d10c5d72888c18802)
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp4
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 4a32d5926..059182389 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -638,6 +638,10 @@ String ScriptEditor::_get_debug_tooltip(const String&p_text,Node *_ste) {
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 );