Skip to content

Commit

Permalink
Update Import.gd (Orama-Interactive#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanWuCode authored Nov 27, 2024
1 parent a3e372c commit 41ea287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Autoload/Import.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41ea287

Please sign in to comment.