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 /core | |
parent | ed300d7be536b1ec325ba77521eceee73dd0e5fb (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 'core')
-rw-r--r-- | core/io/resource_importer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/resource_importer.h b/core/io/resource_importer.h index a1cacbd306..cd583e2533 100644 --- a/core/io/resource_importer.h +++ b/core/io/resource_importer.h @@ -134,8 +134,8 @@ public: virtual int get_preset_count() const { return 0; } virtual String get_preset_name(int p_idx) const { return String(); } - virtual void get_import_options(List<ImportOption> *r_options, int p_preset = 0) const = 0; - virtual bool get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const = 0; + virtual void get_import_options(const String &p_path, List<ImportOption> *r_options, int p_preset = 0) const = 0; + virtual bool get_option_visibility(const String &p_path, const String &p_option, const Map<StringName, Variant> &p_options) const = 0; virtual String get_option_group_file() const { return String(); } virtual Error import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) = 0; |