diff options
| author | Nathan Warden | 2018-02-14 10:23:04 -0500 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-21 21:56:37 +0100 |
| commit | 83b76a81714f8f41ec3da20df842c2acb2d63d4b (patch) | |
| tree | c007277a927c6817e02727fba1ddf40fbb9376bf /editor/editor_node.cpp | |
| parent | 70b082c0d9a554c47a5b3a8d5f01153ec3ab7222 (diff) | |
| download | godot-83b76a81714f8f41ec3da20df842c2acb2d63d4b.tar.gz godot-83b76a81714f8f41ec3da20df842c2acb2d63d4b.tar.zst godot-83b76a81714f8f41ec3da20df842c2acb2d63d4b.zip | |
Added an auto quit and auto build flag to the command line options.
(cherry picked from commit 4bfb504c2f047660ce85fda96657d5cb27415f19)
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 6032d8620..78844bb12 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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]()) |
