Add SVG as a loadable image format

This makes use of Godot's SVG importer to load SVGs and rasterize them.
This commit is contained in:
Hugo Locurcio 2019-10-27 11:33:32 +01:00
parent e41c509e9f
commit e7a46b73a9
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -26,6 +26,7 @@ func _on_TextureButton_pressed() -> void:
dialog.add_filter("*.hdr;Radiance HDR Image") dialog.add_filter("*.hdr;Radiance HDR Image")
dialog.add_filter("*.jpg,*.jpeg;JPEG Image") dialog.add_filter("*.jpg,*.jpeg;JPEG Image")
dialog.add_filter("*.png;PNG Image") dialog.add_filter("*.png;PNG Image")
dialog.add_filter("*.svg;SVG Image")
dialog.add_filter("*.tga;TGA Image") dialog.add_filter("*.tga;TGA Image")
dialog.add_filter("*.webp;WebP Image") dialog.add_filter("*.webp;WebP Image")
dialog.connect("file_selected", self, "set_texture") dialog.connect("file_selected", self, "set_texture")