summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-06-20 21:24:26 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-06-20 21:25:12 +0200
commite80d61038b463a771b0bc07fa4af56890af64485 (patch)
tree1cdee38578870c0ac4dbd419c76a46776f59f602 /editor/import
parenta22b9ce8aca9ff6580308b43bfaef92200f9aaa5 (diff)
Fix EditorImportPlugin::get_preset_count
Was missing a const...
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/editor_import_plugin.cpp2
-rw-r--r--editor/import/editor_import_plugin.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/editor_import_plugin.cpp b/editor/import/editor_import_plugin.cpp
index 6dee5da538..4ebbcb1610 100644
--- a/editor/import/editor_import_plugin.cpp
+++ b/editor/import/editor_import_plugin.cpp
@@ -56,7 +56,7 @@ String EditorImportPlugin::get_preset_name(int p_idx) const {
return get_script_instance()->call("get_preset_name", p_idx);
}
-int EditorImportPlugin::get_preset_count() {
+int EditorImportPlugin::get_preset_count() const {
ERR_FAIL_COND_V(!(get_script_instance() && get_script_instance()->has_method("get_preset_count")), 0);
return get_script_instance()->call("get_preset_count");
}
diff --git a/editor/import/editor_import_plugin.h b/editor/import/editor_import_plugin.h
index 3c16b79713..b60813db61 100644
--- a/editor/import/editor_import_plugin.h
+++ b/editor/import/editor_import_plugin.h
@@ -43,7 +43,7 @@ public:
virtual String get_visible_name() const;
virtual void get_recognized_extensions(List<String> *p_extensions) const;
virtual String get_preset_name(int p_idx) const;
- virtual int get_preset_count();
+ virtual int get_preset_count() const;
virtual String get_save_extension() const;
virtual String get_resource_type() const;
virtual void get_import_options(List<ImportOption> *r_options, int p_preset) const;