1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Added an auto quit and auto build flag to the command line options.

(cherry picked from commit 4bfb504c2f)
This commit is contained in:
Nathan Warden
2018-02-14 10:23:04 -05:00
committed by Hein-Pieter van Braam
parent 70b082c0d9
commit 83b76a8171
3 changed files with 23 additions and 5 deletions

View File

@@ -1783,7 +1783,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))) {
@@ -2326,7 +2326,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");
@@ -4531,7 +4531,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]())