From 2dc94a4896a8e683adfe5c73a503b9273f34ca4b Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 17 Jun 2020 17:15:51 +0300 Subject: [PATCH] Import images as palettes for all supported image file extensions --- src/Palette/PaletteContainer.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Palette/PaletteContainer.gd b/src/Palette/PaletteContainer.gd index e094c062d..852d3ff26 100644 --- a/src/Palette/PaletteContainer.gd +++ b/src/Palette/PaletteContainer.gd @@ -50,7 +50,7 @@ func on_palette_import_file_selected(path : String) -> void: palette = Palette.new().load_from_file(path) elif path.to_lower().ends_with("gpl"): palette = Import.import_gpl(path) - elif path.to_lower().ends_with("png"): + elif path.to_lower().ends_with("png") or path.to_lower().ends_with("bmp") or path.to_lower().ends_with("hdr") or path.to_lower().ends_with("jpg") or path.to_lower().ends_with("svg") or path.to_lower().ends_with("tga") or path.to_lower().ends_with("webp"): palette = Import.import_png_palette(path) if palette: