From 8ab4d0532769fb2d0a1eff7fee419514a43a8342 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Sat, 8 Jul 2023 17:28:44 +0300 Subject: [PATCH] Don't save the project's name inside the pxo Instead, get it from the file's name --- src/Classes/Project.gd | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Classes/Project.gd b/src/Classes/Project.gd index 1e333a72e..eb25c63a7 100644 --- a/src/Classes/Project.gd +++ b/src/Classes/Project.gd @@ -319,7 +319,6 @@ func serialize() -> Dictionary: var project_data := { "pixelorama_version": Global.current_version, "pxo_version": ProjectSettings.get_setting("application/config/Pxo_Version"), - "name": name, "size_x": size.x, "size_y": size.y, "tile_mode_x_basis_x": tiles.x_basis.x, @@ -346,8 +345,6 @@ func serialize() -> Dictionary: func deserialize(dict: Dictionary) -> void: - if dict.has("name"): - name = dict.name if dict.has("size_x") and dict.has("size_y"): size.x = dict.size_x size.y = dict.size_y