summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorNathan Warden <nathan@nathanwarden.com>2018-02-14 10:23:04 -0500
committerNathan Warden <nathan@nathanwarden.com>2018-02-19 16:22:55 -0500
commit4bfb504c2f047660ce85fda96657d5cb27415f19 (patch)
treef789467e3015c6aaf0e0d0fd05fe087c3d1985f5 /editor/editor_node.cpp
parentb2aeb02e7d43d98973334e39db5c39626ba9f775 (diff)
Added an auto quit and auto build flag to the command line options.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 29912feb1f..6d94aedfa9 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -1784,7 +1784,7 @@ void EditorNode::_run(bool p_current, const String &p_custom) {
editor_data.save_editor_external_data();
}
- if (!_call_build())
+ if (!call_build())
return;
if (bool(EDITOR_DEF("run/output/always_clear_output_on_play", true))) {
@@ -2321,7 +2321,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
if (run_native->is_deploy_debug_remote_enabled()) {
_menu_option_confirm(RUN_STOP, true);
- if (!_call_build())
+ if (!call_build())
break; // build failed
emit_signal("play_pressed");
@@ -4525,7 +4525,7 @@ void EditorNode::add_build_callback(EditorBuildCallback p_callback) {
EditorBuildCallback EditorNode::build_callbacks[EditorNode::MAX_BUILD_CALLBACKS];
-bool EditorNode::_call_build() {
+bool EditorNode::call_build() {
for (int i = 0; i < build_callback_count; i++) {
if (!build_callbacks[i]())