summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-28 14:33:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-28 14:33:48 +0200
commit9e903e462caf3c215d3c1f6e771fa02928402b5f (patch)
tree415f8141b2056eb8f622204f164c10f4105c17fd
parentbc756cd4f6ec9532a0a9cf5623f98e4aed1bb581 (diff)
parentcea00ebf58e6b8dfbc968e978bf130dbdc92f1eb (diff)
downloadredot-engine-9e903e462caf3c215d3c1f6e771fa02928402b5f.tar.gz
Merge pull request #78784 from timothyqiu/editor-import-plugin-example
Fix function signature in `EditorImportPlugin` example
-rw-r--r--doc/classes/EditorImportPlugin.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml
index 27c5b14d5a..e3bd78dacf 100644
--- a/doc/classes/EditorImportPlugin.xml
+++ b/doc/classes/EditorImportPlugin.xml
@@ -30,10 +30,10 @@
func _get_preset_count():
return 1
- func _get_preset_name(i):
+ func _get_preset_name(preset_index):
return "Default"
- func _get_import_options(i):
+ func _get_import_options(path, preset_index):
return [{"name": "my_option", "default_value": false}]
func _import(source_file, save_path, options, platform_variants, gen_files):