summaryrefslogtreecommitdiff
path: root/editor/import/resource_importer_bmfont.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-11-14 14:02:38 -0300
committerreduz <reduzio@gmail.com>2021-11-14 14:06:10 -0300
commitcd2a4990844fac72ae624a51bb797716e69ce2c3 (patch)
tree4f6461c676d35ac1974a6c28fedf88d7008741f4 /editor/import/resource_importer_bmfont.cpp
parented300d7be536b1ec325ba77521eceee73dd0e5fb (diff)
Add path to functions that return iporter options
-Allows displaying custom options for specific file format variants -Added support for scene format import to retrieve custom options This PR is necessary for #54886 to be implemented properly.
Diffstat (limited to 'editor/import/resource_importer_bmfont.cpp')
-rw-r--r--editor/import/resource_importer_bmfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_bmfont.cpp b/editor/import/resource_importer_bmfont.cpp
index a64be54f2d..f54065416e 100644
--- a/editor/import/resource_importer_bmfont.cpp
+++ b/editor/import/resource_importer_bmfont.cpp
@@ -56,11 +56,11 @@ String ResourceImporterBMFont::get_resource_type() const {
return "FontData";
}
-bool ResourceImporterBMFont::get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const {
+bool ResourceImporterBMFont::get_option_visibility(const String &p_path, const String &p_option, const Map<StringName, Variant> &p_options) const {
return true;
}
-void ResourceImporterBMFont::get_import_options(List<ImportOption> *r_options, int p_preset) const {
+void ResourceImporterBMFont::get_import_options(const String &p_path, List<ImportOption> *r_options, int p_preset) const {
r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "compress"), true));
}