summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-09-22 08:20:40 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-09-22 08:20:40 +0300
commit4351af30c878f74ddbc8c5cf04c23fb4395999c4 (patch)
treeb80303fc34f4d4b243236dfb11c9fc0533e2cb35 /editor/import
parente5c544750c04951922dadff1c765d035414d0e28 (diff)
[Font Inspector Plugin] Hide "Add Feature" button if supported feature list is empty.
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/dynamic_font_import_settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/import/dynamic_font_import_settings.cpp b/editor/import/dynamic_font_import_settings.cpp
index c1761339b2..1e0f45419f 100644
--- a/editor/import/dynamic_font_import_settings.cpp
+++ b/editor/import/dynamic_font_import_settings.cpp
@@ -1009,6 +1009,7 @@ void DynamicFontImportSettings::open_settings(const String &p_path) {
vars_list_root = vars_list->create_item();
+ import_settings_data->settings.clear();
import_settings_data->defaults.clear();
for (List<ResourceImporter::ImportOption>::Element *E = options_general.front(); E; E = E->next()) {
import_settings_data->defaults[E->get().option.name] = E->get().default_value;