1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Fix export bug where the path is being changed if there's a folder with the same name as the file

This commit is contained in:
Emmanouil Papadeas 2022-04-20 02:49:48 +03:00
parent 77513b6ba3
commit 1e73ce5aa6

View file

@ -609,7 +609,7 @@ func set_new_imported_tab(project: Project, path: String) -> void:
if project.has_changed:
Global.window_title = Global.window_title + "(*)"
var file_name := path.get_basename().get_file()
var directory_path := path.get_basename().replace(file_name, "")
var directory_path := path.get_base_dir()
project.directory_path = directory_path
project.file_name = file_name
project.was_exported = true