1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix brush and palette importing not working

This commit is contained in:
Emmanouil Papadeas 2023-12-10 14:23:14 +02:00
parent a5e73e1fcd
commit 6b5ba2bf0f

View file

@ -186,7 +186,7 @@ func _on_PreviewDialog_confirmed() -> void:
# Copy the image file into the "pixelorama/Patterns" directory
var location := "Patterns".path_join(file_name_ext)
var dir := DirAccess.open(path)
var dir := DirAccess.open(path.get_base_dir())
dir.copy(path, Global.home_data_directory.path_join(location))
@ -412,7 +412,7 @@ func add_brush() -> void:
# Copy the image file into the "pixelorama/Brushes" directory
var location := "Brushes".path_join(file_name_ext)
var dir := DirAccess.open(path)
var dir := DirAccess.open(path.get_base_dir())
dir.copy(path, Global.home_data_directory.path_join(location))
elif brush_type == BrushTypes.PROJECT: