From aa47a47b3cce5a85e2594ace0b54d5a6325b296c Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 1 May 2024 03:04:02 +0300 Subject: [PATCH] Make patterns not be copied on the main directory - Fixes #1010 --- src/Autoload/Palettes.gd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Autoload/Palettes.gd b/src/Autoload/Palettes.gd index 2b1dde23d..e348a7a74 100644 --- a/src/Autoload/Palettes.gd +++ b/src/Autoload/Palettes.gd @@ -332,16 +332,11 @@ func _load_palettes() -> void: search_locations.reverse() priority_ordered_files.reverse() for i in range(search_locations.size()): - # If palette is not in palettes write path - make its copy in the write path - var make_copy := false - if search_locations[i] != palettes_write_path: - make_copy = true - var base_directory := search_locations[i] var palette_files := priority_ordered_files[i] for file_name in palette_files: var path := base_directory.path_join(file_name) - import_palette_from_path(path, make_copy, true) + import_palette_from_path(path, false, true) if not current_palette && palettes.size() > 0: select_palette(palettes.keys()[0]) @@ -383,7 +378,6 @@ func _get_palette_files(path: String) -> PackedStringArray: if !dir: return [] - dir.list_dir_begin() while true: