1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-15 10:13:07 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
HuanWuCode 5fdcd225dc
Merge a17ad78c2d into aa1731b701 2024-11-21 20:19:15 +08:00
HuanWuCode a17ad78c2d
Update Import.gd 2024-10-14 23:01:52 -07:00

View file

@ -90,9 +90,9 @@ func get_brush_files_from_directory(directory: String): # -> Array
func add_randomised_brush(fpaths: Array, tooltip_name: String) -> void:
# Attempt to load the images from the file paths.
var loaded_images: Array = []
for filen in fpaths:
for file in fpaths:
var image := Image.new()
var err := image.load(filen)
var err := image.load(file)
if err == OK:
image.convert(Image.FORMAT_RGBA8)
loaded_images.append(image)