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

Fix selection resizing when transforming content

This commit is contained in:
Emmanouil Papadeas 2023-11-17 18:54:21 +02:00
parent 16a2f524b3
commit 417102da22

View file

@ -370,9 +370,8 @@ func _resize_rect(pos: Vector2, dir: Vector2) -> void:
func resize_selection() -> void:
var size := big_bounding_rectangle.size.abs()
var selection_map := Global.current_project.selection_map
if is_moving_content:
selection_map = original_bitmap
Global.current_project.selection_map.copy_from(original_bitmap)
preview_image.copy_from(original_preview_image)
preview_image.resize(size.x, size.y, Image.INTERPOLATE_NEAREST)
if temp_rect.size.x < 0: