mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:34:43 -04:00
Fixed issue where Brushes and Palettes wouldn't load if you opened Pixelorama from a file
It now uses "OS.get_executable_path().get_base_dir()" to find the root directory of Pixelorama, instead of just "."
This commit is contained in:
parent
9e7a3059f2
commit
a6d129526c
6 changed files with 11 additions and 7 deletions
|
@ -101,7 +101,7 @@ func _on_EditPaletteSaveButton_pressed() -> void:
|
|||
if palette_name_edit.text != current_palette:
|
||||
Global.palettes.erase(current_palette)
|
||||
var dir := Directory.new()
|
||||
dir.open(".")
|
||||
dir.open(Global.root_directory)
|
||||
dir.rename("Palettes".plus_file(current_palette + ".json"), "Palettes".plus_file(palette_name_edit.text + ".json"))
|
||||
current_palette = palette_name_edit.text
|
||||
working_palette.name = current_palette
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue