From 76772d3c64ce33c24c2f9cb46a403bb146b2de96 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 16 Nov 2020 00:56:03 +0200 Subject: [PATCH] Fixed bug with ImageEffect previews and different projects When the user switched from one project to another, which had a larger size, the preview of the ImageEffect was trying to set pixels out of bounds, only when the affect option was different than "Current cel" --- CHANGELOG.md | 7 +++++-- src/Classes/ImageEffect.gd | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 534392c71..cdb773328 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,21 +7,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [v0.8.2] - Unreleased This update has been brought to you by the contributions of: -PinyaColada, Rémi Verschelde (akien-mga), dasimonde, gschwind +PinyaColada, Rémi Verschelde (akien-mga), dasimonde, gschwind, AbhinavKDev ### Added - The lighten/darken tool now has a hue shifting mode. It lets users configure the shift in hue, saturation and value of the new shaded pixels. ([#189](https://github.com/Orama-Interactive/Pixelorama/issues/189)) - Added a "frame properties" option on the popup menu that appears when right-clicking on a cel. This lets the user choose a custom frame delay for that specific frame. ([#357](https://github.com/Orama-Interactive/Pixelorama/pull/357)) - You can now select if you want rotation to apply in the selection, the current cel, the entire frame, all frames or even all projects (tabs)! - You can now change the transparency of the Tile Mode in the Preferences. ([#368](https://github.com/Orama-Interactive/Pixelorama/pull/368)) -- Added a "Recent Projects" option in the File menu, to contain the most recently opened projects. ([#370](https://github.com/Orama-Interactive/Pixelorama/pull/370)) +- Added a "Recent Projects" option in the File menu, to contain the most recently opened projects. ([#370](https://github.com/Orama-Interactive/Pixelorama/pull/370)) - HiDPI support - Pixelorama's UI can now be scaled in the Preferences. ([#140](https://github.com/Orama-Interactive/Pixelorama/issues/140)) +- More options have been added to Tile mode, Tile only in X Axis, Y Axis or both Axis. ([#378](https://github.com/Orama-Interactive/Pixelorama/pull/378)) ### Changed - `~` is now used as a random brush prefix instead of `%`. ([#362](https://github.com/Orama-Interactive/Pixelorama/pull/362)) - The default path of the dialogs for opening and saving is now the user's desktop folder. - When there are errors in opening and saving files, the errors appear in the form of a popup dialog, instead of a notification or an OS alert. - The CJK font (for Chinese & Korean) was changed to DroidSansFallback from NotoSansCJKtc. This results in a much smaller exported `.pck` (over 10MB less) +- In onion skinning, you can now set the past and future steps to 0. ([#380](https://github.com/Orama-Interactive/Pixelorama/pull/380)) ### Fixed - Made .pxo saving safer. In case of a crash while parsing JSON data, the old .pxo file, if it exists, will no longer be overwritten and corrupted. @@ -32,6 +34,7 @@ PinyaColada, Rémi Verschelde (akien-mga), dasimonde, gschwind - Fixed Chinese and Korean characters not displaying properly in the Splash dialog and the About dialog. - Fixed crash when importing an incorrectly formatted GIMP Color Palette file. ([#363](https://github.com/Orama-Interactive/Pixelorama/issues/363)) - Using the lighten/darken on pixels with an alpha value of 0 no longer has an effect on them. +- Fixed freeze when switching to a project of a larger size and using an image effect, with the affected parts being set to something different that "Current cel".

## [v0.8.1] - 2020-10-14 diff --git a/src/Classes/ImageEffect.gd b/src/Classes/ImageEffect.gd index 75a83ab01..6daab2e00 100644 --- a/src/Classes/ImageEffect.gd +++ b/src/Classes/ImageEffect.gd @@ -34,6 +34,7 @@ func _ready() -> void: func _about_to_show() -> void: current_cel = Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer].image + current_frame.resize(Global.current_project.size.x, Global.current_project.size.y) current_frame.fill(Color(0, 0, 0, 0)) var frame = Global.current_project.frames[Global.current_project.current_frame] Export.blend_layers(current_frame, frame)