summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-11 22:21:52 +0200
committerGitHub <noreply@github.com>2017-10-11 22:21:52 +0200
commit490722c34fb520b16d3f43a8cc352d124babfc75 (patch)
tree1008a56407f06d42716f551be72c7b9fbd361234
parent37bc37219466a2e7c5367fbae70fd82f716f5270 (diff)
parent0cd9993ed5a953f720ba8bccaa225edf7aab4322 (diff)
Merge pull request #11875 from endragor/fix-export-loop
Fix command-line export looping infinitely
-rw-r--r--editor/editor_node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index ff415c83f1..1ca88133b8 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -373,6 +373,9 @@ void EditorNode::_fs_changed() {
String err = "Preset \"" + export_defer.preset + "\" doesn't have a platform.";
ERR_PRINT(err.utf8().get_data());
} else {
+ // ensures export_project does not loop infinitely, because notifications may
+ // come during the export
+ export_defer.preset = "";
platform->export_project(preset, export_defer.debug, export_defer.path, /*p_flags*/ 0);
}
}