From 42e8c8cb507e25a3c26469e31a745bbb9a557d54 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 18 Dec 2023 20:56:38 +0200 Subject: [PATCH] When saving, don't include ".pxo" in the project name --- src/Autoload/OpenSave.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index 5b4daa86f..597d20b49 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -324,7 +324,7 @@ func save_pxo_file( path: String, autosave: bool, include_blended := false, project := Global.current_project ) -> bool: if !autosave: - project.name = path.get_file() + project.name = path.get_file().trim_suffix(".pxo") var serialized_data := project.serialize() if !serialized_data: Global.error_dialog.set_text(