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:
parent
16a2f524b3
commit
417102da22
|
@ -370,9 +370,8 @@ func _resize_rect(pos: Vector2, dir: Vector2) -> void:
|
||||||
|
|
||||||
func resize_selection() -> void:
|
func resize_selection() -> void:
|
||||||
var size := big_bounding_rectangle.size.abs()
|
var size := big_bounding_rectangle.size.abs()
|
||||||
var selection_map := Global.current_project.selection_map
|
|
||||||
if is_moving_content:
|
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.copy_from(original_preview_image)
|
||||||
preview_image.resize(size.x, size.y, Image.INTERPOLATE_NEAREST)
|
preview_image.resize(size.x, size.y, Image.INTERPOLATE_NEAREST)
|
||||||
if temp_rect.size.x < 0:
|
if temp_rect.size.x < 0:
|
||||||
|
|
Loading…
Reference in a new issue