diff options
author | Ruslan Mustakov <r.mustakov@gmail.com> | 2017-08-19 11:59:00 +0700 |
---|---|---|
committer | Ruslan Mustakov <r.mustakov@gmail.com> | 2017-08-19 11:59:00 +0700 |
commit | 02670a380655b78d010b57432d433e8b249806a7 (patch) | |
tree | fb1d15a0f415f0c629da2bba6e693dc99e9f8edb /editor | |
parent | e61d547ed08924d75e18469fe648463dee3bd5a3 (diff) |
Quit after command-line export
Diffstat (limited to 'editor')
-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 242648d4a9..8bb5633fd7 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(); } { |