Fix custom features missing when _export_begin is called

This commit is contained in:
Marcelo Fernandez 2018-12-07 16:29:47 -03:00
parent bb4d02e41a
commit 087401b33f

View file

@ -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<String> 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;
}