mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Update Import.gd (#1121)
This commit is contained in:
parent
a3e372c5d8
commit
41ea287df4
|
@ -90,9 +90,9 @@ func get_brush_files_from_directory(directory: String): # -> Array
|
||||||
func add_randomised_brush(fpaths: Array, tooltip_name: String) -> void:
|
func add_randomised_brush(fpaths: Array, tooltip_name: String) -> void:
|
||||||
# Attempt to load the images from the file paths.
|
# Attempt to load the images from the file paths.
|
||||||
var loaded_images: Array = []
|
var loaded_images: Array = []
|
||||||
for filen in fpaths:
|
for file in fpaths:
|
||||||
var image := Image.new()
|
var image := Image.new()
|
||||||
var err := image.load(filen)
|
var err := image.load(file)
|
||||||
if err == OK:
|
if err == OK:
|
||||||
image.convert(Image.FORMAT_RGBA8)
|
image.convert(Image.FORMAT_RGBA8)
|
||||||
loaded_images.append(image)
|
loaded_images.append(image)
|
||||||
|
|
Loading…
Reference in a new issue