Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

fix: only serialize export settings properties that have the PROPERTY_USAGE_STORAGE flag

Gerard Gascón8dd6ce03de61
diff --git a/editor/export/editor_export.cpp b/editor/export/editor_export.cpp
index 1d10838a9c8..3082c914718 100644
--- a/editor/export/editor_export.cpp
+++ b/editor/export/editor_export.cpp
@@ -108,9 +108,9 @@ void EditorExport::_save() {
for (const KeyValue<StringName, Variant> &E : preset->values) {
PropertyInfo *prop = preset->properties.getptr(E.key);
- if (prop && prop->usage & PROPERTY_USAGE_SECRET) {
+ if (prop && prop->usage & PROPERTY_USAGE_SECRET && prop->usage & PROPERTY_USAGE_STORAGE) {
credentials->set_value(option_section, E.key, E.value);
- } else {
+ } else if (prop && prop->usage & PROPERTY_USAGE_STORAGE) {
config->set_value(option_section, E.key, E.value);
}
}