diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-19 10:36:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 10:36:03 +0200 |
commit | c57671f0b317f31f766b54578d544cd80454335e (patch) | |
tree | 50b55793a550494237ce4852d41076a4fa59f97e /editor/editor_node.cpp | |
parent | 9acd9f8e454332547b04f6a9f4c6d75a63a0b18d (diff) | |
parent | 02670a380655b78d010b57432d433e8b249806a7 (diff) |
Merge pull request #10435 from endragor/export-quit
Quit after command-line export
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 1017aabc9d..a5f0478854 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -371,6 +371,7 @@ void EditorNode::_fs_changed() { if (preset->get_name() == export_defer.preset) { break; } + preset.unref(); } if (preset.is_null()) { String err = "Unknown export preset: " + export_defer.preset; @@ -385,7 +386,7 @@ void EditorNode::_fs_changed() { } } - export_defer.preset = ""; + get_tree()->quit(); } { |