浏览代码

Fix custom features missing when _export_begin is called

Marcelo Fernandez 6 年之前
父节点
当前提交
087401b33f
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      editor/editor_export.cpp

+ 14 - 0
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<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;
 }