1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-12 16:53:07 +00:00

Update Import.gd

This commit is contained in:
HuanWuCode 2024-10-14 23:01:52 -07:00 committed by GitHub
parent 4561c1fee4
commit a17ad78c2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)