summaryrefslogtreecommitdiff
path: root/editor/import/resource_importer_dynamicfont.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-15 00:46:04 +0100
committerGitHub <noreply@github.com>2021-11-15 00:46:04 +0100
commit8bb163807a63ad4f5b6ea6469149252ea5304881 (patch)
tree88817f9593709cd78457912f7372d5f4141e78c8 /editor/import/resource_importer_dynamicfont.cpp
parent315e94ee2a3c8a5f3e68bba2a8ee82c1b4b31901 (diff)
parentcd2a4990844fac72ae624a51bb797716e69ce2c3 (diff)
Merge pull request #54976 from reduz/importer-options-by-path
Diffstat (limited to 'editor/import/resource_importer_dynamicfont.cpp')
-rw-r--r--editor/import/resource_importer_dynamicfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_dynamicfont.cpp b/editor/import/resource_importer_dynamicfont.cpp
index a021275917..f7363a565d 100644
--- a/editor/import/resource_importer_dynamicfont.cpp
+++ b/editor/import/resource_importer_dynamicfont.cpp
@@ -66,7 +66,7 @@ String ResourceImporterDynamicFont::get_resource_type() const {
return "FontData";
}
-bool ResourceImporterDynamicFont::get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const {
+bool ResourceImporterDynamicFont::get_option_visibility(const String &p_path, const String &p_option, const Map<StringName, Variant> &p_options) const {
if (p_option == "msdf_pixel_range" && !bool(p_options["multichannel_signed_distance_field"])) {
return false;
}
@@ -94,7 +94,7 @@ String ResourceImporterDynamicFont::get_preset_name(int p_idx) const {
}
}
-void ResourceImporterDynamicFont::get_import_options(List<ImportOption> *r_options, int p_preset) const {
+void ResourceImporterDynamicFont::get_import_options(const String &p_path, List<ImportOption> *r_options, int p_preset) const {
bool msdf = p_preset == PRESET_MSDF;
r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "antialiased"), true));