Skip to content

Commit

Permalink
Merge pull request #11875 from endragor/fix-export-loop
Browse files Browse the repository at this point in the history
Fix command-line export looping infinitely
  • Loading branch information
akien-mga authored Oct 11, 2017
2 parents 37bc372 + 0cd9993 commit 490722c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 490722c

Please sign in to comment.