mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 12:04:50 -04:00
Fix issue with project loading and not being able to draw outside of 64x64
Project.selected_pixels() did not get updated.
This commit is contained in:
parent
8d1c2e96f3
commit
52effb12cd
1 changed files with 2 additions and 2 deletions
|
@ -254,10 +254,10 @@ func serialize() -> Dictionary:
|
||||||
func deserialize(dict : Dictionary) -> void:
|
func deserialize(dict : Dictionary) -> void:
|
||||||
if dict.has("name"):
|
if dict.has("name"):
|
||||||
name = dict.name
|
name = dict.name
|
||||||
if dict.has("size_x"):
|
if dict.has("size_x") and dict.has("size_y"):
|
||||||
size.x = dict.size_x
|
size.x = dict.size_x
|
||||||
if dict.has("size_y"):
|
|
||||||
size.y = dict.size_y
|
size.y = dict.size_y
|
||||||
|
select_all_pixels()
|
||||||
if dict.has("save_path"):
|
if dict.has("save_path"):
|
||||||
OpenSave.current_save_paths[Global.projects.find(self)] = dict.save_path
|
OpenSave.current_save_paths[Global.projects.find(self)] = dict.save_path
|
||||||
if dict.has("frames"):
|
if dict.has("frames"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue