From 4ad590b92f02efc95bd2a06a9f4ab3d1ac6d5973 Mon Sep 17 00:00:00 2001 From: Julian Murgia - StraToN Date: Thu, 30 Jul 2015 00:03:25 +0200 Subject: Added automatic clear output on Play in Godot Settings --- tools/editor/editor_node.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/editor/editor_node.cpp') diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 7b44f2cad..3f30e8527 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -1564,7 +1564,6 @@ void EditorNode::_run(bool p_current,const String& p_custom) { Node *scene = editor_data.get_edited_scene_root(); if (!scene) { - current_option=-1; //accept->get_cancel()->hide(); accept->get_ok()->set_text("I see.."); @@ -1645,6 +1644,11 @@ void EditorNode::_run(bool p_current,const String& p_custom) { editor_data.save_editor_external_data(); } + if (bool(EDITOR_DEF("run/always_clear_output_on_play", true))) { + print_line("Setting option was set to ON -> clearing"); + log->clear(); + } + List breakpoints; editor_data.get_editor_breakpoints(&breakpoints); -- cgit v1.2.3-70-g09d2