diff options
author | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-07-04 15:39:23 +0200 |
---|---|---|
committer | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-07-04 15:39:23 +0200 |
commit | fa84d09542cfd60f7a881c7d5655a2a74de39c9f (patch) | |
tree | 32beb75ca0782268f2bb78b02ae7c32e0d14247c /editor/export/editor_export_preset.cpp | |
parent | cdd2313ba27d0a2600a18e849b4c5d1fd6a6e351 (diff) | |
download | redot-engine-fa84d09542cfd60f7a881c7d5655a2a74de39c9f.tar.gz |
Fix export options of scripted EditorExportPlugins
Diffstat (limited to 'editor/export/editor_export_preset.cpp')
-rw-r--r-- | editor/export/editor_export_preset.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/export/editor_export_preset.cpp b/editor/export/editor_export_preset.cpp index 2aca19a2ad..a7dc44e3a8 100644 --- a/editor/export/editor_export_preset.cpp +++ b/editor/export/editor_export_preset.cpp @@ -31,9 +31,9 @@ #include "editor_export.h" bool EditorExportPreset::_set(const StringName &p_name, const Variant &p_value) { - if (values.has(p_name)) { - values[p_name] = p_value; - EditorExport::singleton->save_presets(); + values[p_name] = p_value; + EditorExport::singleton->save_presets(); + if (update_visibility.has(p_name)) { if (update_visibility[p_name]) { notify_property_list_changed(); } @@ -61,9 +61,9 @@ String EditorExportPreset::_get_property_warning(const StringName &p_name) const } void EditorExportPreset::_get_property_list(List<PropertyInfo> *p_list) const { - for (const PropertyInfo &E : properties) { - if (platform->get_export_option_visibility(this, E.name)) { - p_list->push_back(E); + for (const KeyValue<StringName, PropertyInfo> &E : properties) { + if (platform->get_export_option_visibility(this, E.key)) { + p_list->push_back(E.value); } } } |