summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-12 22:14:15 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-12 22:29:14 +0200
commitebc85eff98744c766d433e04a286f08ec42ca203 (patch)
tree0a49af54ea85e7fad2cd5135cadbc600c4272500 /editor
parentba4bd7f00971a94c20d90e7d2c665d5eb0ae1b90 (diff)
Fix advanced font import dialog not saving outline sizes of pre-render configs correctly.
Diffstat (limited to 'editor')
-rw-r--r--editor/import/dynamic_font_import_settings.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/editor/import/dynamic_font_import_settings.cpp b/editor/import/dynamic_font_import_settings.cpp
index 75d0abbb0c..afcfacdf75 100644
--- a/editor/import/dynamic_font_import_settings.cpp
+++ b/editor/import/dynamic_font_import_settings.cpp
@@ -954,9 +954,18 @@ void DynamicFontImportSettings::_re_import() {
Dictionary preload_config;
preload_config["name"] = vars_item->get_text(0);
+ Size2i conf_size = Vector2i(16, 0);
for (const KeyValue<StringName, Variant> &E : import_variation_data->settings) {
- preload_config[E.key] = E.value;
+ if (E.key == "size") {
+ conf_size.x = E.value;
+ }
+ if (E.key == "outline_size") {
+ conf_size.y = E.value;
+ } else {
+ preload_config[E.key] = E.value;
+ }
}
+ preload_config["size"] = conf_size;
Array chars;
for (const char32_t &E : import_variation_data->selected_chars) {