mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 19:34:48 -04:00
Import images as palettes for all supported image file extensions
This commit is contained in:
parent
25d9aca0c4
commit
2dc94a4896
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func on_palette_import_file_selected(path : String) -> void:
|
||||||
palette = Palette.new().load_from_file(path)
|
palette = Palette.new().load_from_file(path)
|
||||||
elif path.to_lower().ends_with("gpl"):
|
elif path.to_lower().ends_with("gpl"):
|
||||||
palette = Import.import_gpl(path)
|
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)
|
palette = Import.import_png_palette(path)
|
||||||
|
|
||||||
if palette:
|
if palette:
|
||||||
|
|
Loading…
Add table
Reference in a new issue