diff options
author | reduz <reduzio@gmail.com> | 2021-11-14 14:02:38 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-11-14 14:06:10 -0300 |
commit | cd2a4990844fac72ae624a51bb797716e69ce2c3 (patch) | |
tree | 4f6461c676d35ac1974a6c28fedf88d7008741f4 /editor/import/resource_importer_csv_translation.cpp | |
parent | ed300d7be536b1ec325ba77521eceee73dd0e5fb (diff) | |
download | redot-engine-cd2a4990844fac72ae624a51bb797716e69ce2c3.tar.gz |
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_csv_translation.cpp')
-rw-r--r-- | editor/import/resource_importer_csv_translation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_csv_translation.cpp b/editor/import/resource_importer_csv_translation.cpp index 07647d8b6a..7948d9e577 100644 --- a/editor/import/resource_importer_csv_translation.cpp +++ b/editor/import/resource_importer_csv_translation.cpp @@ -55,7 +55,7 @@ String ResourceImporterCSVTranslation::get_resource_type() const { return "Translation"; } -bool ResourceImporterCSVTranslation::get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const { +bool ResourceImporterCSVTranslation::get_option_visibility(const String &p_path, const String &p_option, const Map<StringName, Variant> &p_options) const { return true; } @@ -67,7 +67,7 @@ String ResourceImporterCSVTranslation::get_preset_name(int p_idx) const { return ""; } -void ResourceImporterCSVTranslation::get_import_options(List<ImportOption> *r_options, int p_preset) const { +void ResourceImporterCSVTranslation::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)); r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "delimiter", PROPERTY_HINT_ENUM, "Comma,Semicolon,Tab"), 0)); } |