Don't switch to script on breakpoint hit when using external editor.

Fixes #7705

(cherry picked from commit 10fa752ae7)
This commit is contained in:
Andreas Haas 2017-02-20 21:22:50 +01:00 committed by Rémi Verschelde
parent 77cb8f058d
commit 7bf7fe854f

View file

@ -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) { 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_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_STEP), !(p_breaked && p_can_debug) );
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), p_breaked ); debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), p_breaked );