Merge pull request #11875 from endragor/fix-export-loop
Fix command-line export looping infinitely
This commit is contained in:
commit
490722c34f
1 changed files with 3 additions and 0 deletions
|
@ -373,6 +373,9 @@ void EditorNode::_fs_changed() {
|
||||||
String err = "Preset \"" + export_defer.preset + "\" doesn't have a platform.";
|
String err = "Preset \"" + export_defer.preset + "\" doesn't have a platform.";
|
||||||
ERR_PRINT(err.utf8().get_data());
|
ERR_PRINT(err.utf8().get_data());
|
||||||
} else {
|
} 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);
|
platform->export_project(preset, export_defer.debug, export_defer.path, /*p_flags*/ 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue