1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fixed crash when loading a .pxo file from an earlier version

This commit is contained in:
OverloadedOrama 2020-03-09 21:22:25 +02:00
parent 2614ac5b3a
commit 87b22e7d6d
2 changed files with 3 additions and 1 deletions

View file

@ -8,12 +8,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Importing .pngs as palettes is now possible - thanks to Martin Novák (novhack)!
- A confirmation message now appears when the user quits Pixelorama, if there are unsaved changes - thanks to Schweini07!
- Locking layers is now possible. When a layer is locked, no changes can be made to it. Layers are unlocked by default.
### Changed
- The timeline has been revamped!
- An asterisk is added to the window title if there are unsaved changes.
- A VSplitContainer has been added between the canvas and the timeline.
- Notification text is now black on the gold and light themes.
- Layer's LineEdit now saves the changes when it loses focus, or when the user presses ESC (or Enter)
### Fixed
- Chinese characters not being rendered in notifications (the labels that appear when undoing/redoing)

View file

@ -426,7 +426,7 @@ func _on_OpenSprite_file_selected(path : String) -> void:
if version_number < (0.7 - 0.01):
var layer_name_old_version = file.get_line()
if frame == 0:
Global.layers.append([layer_name_old_version, true, HBoxContainer.new()])
Global.layers.append([layer_name_old_version, true, false, HBoxContainer.new()])
var layer_transparency := 1.0
if version_number > 0.5:
layer_transparency = file.get_float()