Merge pull request #24216 from marcelofg55/custom_features_fix

Fix custom features missing when _export_begin is called
This commit is contained in:
Rémi Verschelde 2018-12-07 20:56:06 +01:00 committed by GitHub
commit 0611b674c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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