Replace XML codeblock spaces with tabs
This commit is contained in:
parent
5dd76968d8
commit
13f642d959
122 changed files with 2407 additions and 2432 deletions
|
|
@ -11,15 +11,15 @@
|
|||
extends EditorResourceConversionPlugin
|
||||
|
||||
func _handles(resource: Resource):
|
||||
return resource is ImageTexture
|
||||
return resource is ImageTexture
|
||||
|
||||
func _converts_to():
|
||||
return "PortableCompressedTexture2D"
|
||||
return "PortableCompressedTexture2D"
|
||||
|
||||
func _convert(itex: Resource):
|
||||
var ptex = PortableCompressedTexture2D.new()
|
||||
ptex.create_from_image(itex.get_image(), PortableCompressedTexture2D.COMPRESSION_MODE_LOSSLESS)
|
||||
return ptex
|
||||
var ptex = PortableCompressedTexture2D.new()
|
||||
ptex.create_from_image(itex.get_image(), PortableCompressedTexture2D.COMPRESSION_MODE_LOSSLESS)
|
||||
return ptex
|
||||
[/gdscript]
|
||||
[/codeblocks]
|
||||
To use an [EditorResourceConversionPlugin], register it using the [method EditorPlugin.add_resource_conversion_plugin] method first.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue