mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
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:
parent
e41c509e9f
commit
e7a46b73a9
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user