From 087401b33f05b204b4d8b06606627b2fa6f2a625 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Fri, 7 Dec 2018 16:29:47 -0300 Subject: [PATCH] Fix custom features missing when _export_begin is called --- editor/editor_export.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index 1639369214..9df0f30ca4 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -594,6 +594,20 @@ EditorExportPlatform::FeatureContainers EditorExportPlatform::get_feature_contai result.features.insert(E->get()); result.features_pv.push_back(E->get()); } + + if (p_preset->get_custom_features() != String()) { + + Vector tmp_custom_list = p_preset->get_custom_features().split(","); + + for (int i = 0; i < tmp_custom_list.size(); i++) { + String f = tmp_custom_list[i].strip_edges(); + if (f != String()) { + result.features.insert(f); + result.features_pv.push_back(f); + } + } + } + return result; }