1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fix id_map error on open_pxo_file as well as grid being wrong size (#765)

Co-authored-by: MrTriPie <MrTriPie>
This commit is contained in:
mrtripie 2022-10-16 19:21:28 -04:00 committed by GitHub
parent 637662dee4
commit 0faacafb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,9 +135,7 @@ func open_pxo_file(path: String, untitled_backup: bool = false, replace_empty: b
file.close() file.close()
if empty_project: if empty_project:
if dict.error == OK and dict.result.has("fps"): new_project.change_project()
Global.animation_timeline.fps_spinbox.value = dict.result.fps
Global.animation_timeline.project_changed()
else: else:
Global.projects.append(new_project) Global.projects.append(new_project)
Global.tabs.current_tab = Global.tabs.get_tab_count() - 1 Global.tabs.current_tab = Global.tabs.get_tab_count() - 1