mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Don't save the project's name inside the pxo
Instead, get it from the file's name
This commit is contained in:
parent
322c0f2d26
commit
8ab4d05327
|
@ -319,7 +319,6 @@ func serialize() -> Dictionary:
|
||||||
var project_data := {
|
var project_data := {
|
||||||
"pixelorama_version": Global.current_version,
|
"pixelorama_version": Global.current_version,
|
||||||
"pxo_version": ProjectSettings.get_setting("application/config/Pxo_Version"),
|
"pxo_version": ProjectSettings.get_setting("application/config/Pxo_Version"),
|
||||||
"name": name,
|
|
||||||
"size_x": size.x,
|
"size_x": size.x,
|
||||||
"size_y": size.y,
|
"size_y": size.y,
|
||||||
"tile_mode_x_basis_x": tiles.x_basis.x,
|
"tile_mode_x_basis_x": tiles.x_basis.x,
|
||||||
|
@ -346,8 +345,6 @@ func serialize() -> Dictionary:
|
||||||
|
|
||||||
|
|
||||||
func deserialize(dict: Dictionary) -> void:
|
func deserialize(dict: Dictionary) -> void:
|
||||||
if dict.has("name"):
|
|
||||||
name = dict.name
|
|
||||||
if dict.has("size_x") and dict.has("size_y"):
|
if dict.has("size_x") and dict.has("size_y"):
|
||||||
size.x = dict.size_x
|
size.x = dict.size_x
|
||||||
size.y = dict.size_y
|
size.y = dict.size_y
|
||||||
|
|
Loading…
Reference in a new issue