mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-14 15:25:17 +00:00
Fix loading pxo files with tilemaps that don't have offset
This commit is contained in:
parent
7f047e8894
commit
f03338479f
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ func deserialize(dict: Dictionary) -> void:
|
|||
var cell_data_serialized: Dictionary = cell_data[cell_coords_str]
|
||||
var cell_coords := str_to_var("Vector2i" + cell_coords_str) as Vector2i
|
||||
get_cell_at(cell_coords).deserialize(cell_data_serialized)
|
||||
var new_offset_str = dict.get("offset", "Vector2i(0, 0)")
|
||||
var new_offset_str = dict.get("offset", "(0, 0)")
|
||||
var new_offset := str_to_var("Vector2i" + new_offset_str) as Vector2i
|
||||
if new_offset != offset:
|
||||
change_offset(new_offset)
|
||||
|
|
Loading…
Add table
Reference in a new issue