Browse Source

Fix example code for EditorImportPlugin

volzhs 8 years ago
parent
commit
d15af2c290
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/classes/EditorImportPlugin.xml

+ 2 - 2
doc/classes/EditorImportPlugin.xml

@@ -39,8 +39,8 @@
 		    return [{"name": "my_option", "default_value": false}]
 		    return [{"name": "my_option", "default_value": false}]
 
 
 		func load(src, dst, opts, r_platform_variants, r_gen_files):
 		func load(src, dst, opts, r_platform_variants, r_gen_files):
-		    var f = File.new()
-		    if f.open(src, File.READ) != OK:
+		    var file = File.new()
+		    if file.open(src, File.READ) != OK:
 		        return FAILED
 		        return FAILED
 
 
 		    var mesh = Mesh.new()
 		    var mesh = Mesh.new()