From 02b91479adee62a7cfeccee3c3b5d5d9ac806e4d Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 17 Feb 2020 18:28:55 +0200 Subject: [PATCH] Should fix #162 --- Changelog.md | 2 +- Scripts/SelectionRectangle.gd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 78ee2e886..181f3d214 100644 --- a/Changelog.md +++ b/Changelog.md @@ -38,7 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fixed crash when importing images that were failing to load. They still fail to load, but Pixelorama does not crash. - Possibly fixed a rare crash where the cursor image was failing to load. It is now being loaded only once. - Fixed ruler markings cutting off before they should - Thanks to YeldhamDev! -- Fixed bug where resizing the image on export was not working on Godot 3.2 - Issue #161 +- Fixed bug where resizing the image on export and moving selection content were not working on Godot 3.2 - Issues #161 and #162 ## [v0.6.1] - 13-01-2020 diff --git a/Scripts/SelectionRectangle.gd b/Scripts/SelectionRectangle.gd index ae9cf4d61..69656d7f8 100644 --- a/Scripts/SelectionRectangle.gd +++ b/Scripts/SelectionRectangle.gd @@ -47,6 +47,7 @@ func _process(delta : float) -> void: orig_x = start_pos.x - mouse_pos_floored.x orig_y = start_pos.y - mouse_pos_floored.y if move_pixels: + img.unlock() img.resize(polygon[2].x - polygon[0].x, polygon[2].y - polygon[0].y, 0) img.lock() for i in range(Global.selected_pixels.size()):