diff options
author | Jiri Suchan <yed@vanyli.net> | 2023-01-30 22:21:36 +0800 |
---|---|---|
committer | Jiri Suchan <yed@vanyli.net> | 2023-01-30 22:43:08 +0800 |
commit | 4a4adec33db7a928418ade06cd54823fd541b786 (patch) | |
tree | 3220681daa6fbfc191894727b3d84baf3b898740 /doc/classes/EditorImportPlugin.xml | |
parent | 312011fadec12c98eb14791bb0b19c63463d98ae (diff) |
docs: replace File with FileAccess
Diffstat (limited to 'doc/classes/EditorImportPlugin.xml')
-rw-r--r-- | doc/classes/EditorImportPlugin.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml index c395815117..ec9efcc9c4 100644 --- a/doc/classes/EditorImportPlugin.xml +++ b/doc/classes/EditorImportPlugin.xml @@ -37,8 +37,8 @@ return [{"name": "my_option", "default_value": false}] func _import(source_file, save_path, options, platform_variants, gen_files): - var file = File.new() - if file.open(source_file, File.READ) != OK: + var file = FileAccess.open(source_file, FileAccess.READ) + if file == null: return FAILED var mesh = ArrayMesh.new() # Fill the Mesh with data read in "file", left as an exercise to the reader. |