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

Fix issue with copying and pasting to a different project that has a bigger canvas

This commit is contained in:
Manolis Papadeas 2021-09-24 19:23:59 +03:00
parent f948c24430
commit 86e66495b1

View file

@ -632,7 +632,9 @@ func paste() -> void:
original_big_bounding_rectangle = big_bounding_rectangle
original_offset = project.selection_offset
project.selection_bitmap = clipboard.selection_bitmap.duplicate()
var clip_bitmap : BitMap = clipboard.selection_bitmap.duplicate()
project.selection_bitmap = Global.current_project.resize_bitmap(clip_bitmap, project.selection_bitmap.get_size())
self.big_bounding_rectangle = clipboard.big_bounding_rectangle
project.selection_offset = clipboard.selection_offset