aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-08-08 11:07:36 -0300
committerJuan Linietsky2015-08-08 11:07:36 -0300
commitb3dff195e031c4ecce4e7d055e184f41420493c1 (patch)
treea4a66aaac8e379b0d8cb36340dfdcf457085de2c /tools/editor/editor_node.cpp
parent71b14f98226460143834efdf16a4d7b96adfb796 (diff)
parente6a711282ad9b918cb9dd9965abff75a7c3b6b43 (diff)
downloadgodot-b3dff195e031c4ecce4e7d055e184f41420493c1.tar.gz
godot-b3dff195e031c4ecce4e7d055e184f41420493c1.tar.zst
godot-b3dff195e031c4ecce4e7d055e184f41420493c1.zip
Merge pull request #2316 from StraToN/clearconsole
Clear output console (Button + clear on Play)
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r--tools/editor/editor_node.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 605335f7c..b0a2c568d 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -1587,7 +1587,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..");
@@ -1668,6 +1667,10 @@ 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))) {
+ log->clear();
+ }
+
List<String> breakpoints;
editor_data.get_editor_breakpoints(&breakpoints);