From e7a46b73a9caddaa000d10a764fddcf453c72235 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 27 Oct 2019 11:33:32 +0100 Subject: [PATCH] Add SVG as a loadable image format This makes use of Godot's SVG importer to load SVGs and rasterize them. --- addons/material_maker/nodes/image.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/material_maker/nodes/image.gd b/addons/material_maker/nodes/image.gd index 4e1cb46..327de41 100644 --- a/addons/material_maker/nodes/image.gd +++ b/addons/material_maker/nodes/image.gd @@ -26,6 +26,7 @@ func _on_TextureButton_pressed() -> void: dialog.add_filter("*.hdr;Radiance HDR Image") dialog.add_filter("*.jpg,*.jpeg;JPEG Image") dialog.add_filter("*.png;PNG Image") + dialog.add_filter("*.svg;SVG Image") dialog.add_filter("*.tga;TGA Image") dialog.add_filter("*.webp;WebP Image") dialog.connect("file_selected", self, "set_texture")