Added automatic clear output on Play in Godot Settings

This commit is contained in:
Julian Murgia - StraToN 2015-07-30 00:03:25 +02:00
parent f46e340ab5
commit 4ad590b92f
3 changed files with 17 additions and 6 deletions

View file

@ -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<String> breakpoints;
editor_data.get_editor_breakpoints(&breakpoints);