mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix issue with copying and pasting to a different project that has a smaller canvas
Fixes a bug caused by 86e66495b1
This commit is contained in:
parent
845bf2bab7
commit
b7e598c438
|
@ -633,8 +633,9 @@ func paste() -> void:
|
|||
original_offset = project.selection_offset
|
||||
|
||||
var clip_bitmap : BitMap = clipboard.selection_bitmap.duplicate()
|
||||
var max_size := Vector2(max(clip_bitmap.get_size().x, project.selection_bitmap.get_size().x), max(clip_bitmap.get_size().y, project.selection_bitmap.get_size().y))
|
||||
|
||||
project.selection_bitmap = Global.current_project.resize_bitmap(clip_bitmap, project.selection_bitmap.get_size())
|
||||
project.selection_bitmap = Global.current_project.resize_bitmap(clip_bitmap, max_size)
|
||||
self.big_bounding_rectangle = clipboard.big_bounding_rectangle
|
||||
project.selection_offset = clipboard.selection_offset
|
||||
|
||||
|
|
Loading…
Reference in a new issue