diff options
Diffstat (limited to 'doc/classes/EditorResourceConversionPlugin.xml')
-rw-r--r-- | doc/classes/EditorResourceConversionPlugin.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorResourceConversionPlugin.xml b/doc/classes/EditorResourceConversionPlugin.xml index 6bdfbbe40c..7d125d731c 100644 --- a/doc/classes/EditorResourceConversionPlugin.xml +++ b/doc/classes/EditorResourceConversionPlugin.xml @@ -10,13 +10,13 @@ [gdscript] extends EditorResourceConversionPlugin - func _handles(resource : Resource): + func _handles(resource: Resource): return resource is ImageTexture func _converts_to(): return "PortableCompressedTexture2D" - func _convert(itex : Resource): + func _convert(itex: Resource): var ptex = PortableCompressedTexture2D.new() ptex.create_from_image(itex.get_image(), PortableCompressedTexture2D.COMPRESSION_MODE_LOSSLESS) return ptex |