From 87b22e7d6d215d424a24c27524e28bbd33a946e7 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 9 Mar 2020 21:22:25 +0200 Subject: [PATCH] Fixed crash when loading a .pxo file from an earlier version --- Changelog.md | 2 ++ Scripts/Main.gd | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index e0d049065..be5451d3e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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) diff --git a/Scripts/Main.gd b/Scripts/Main.gd index 9a5eb4536..9b4b21252 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -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()