1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-21 21:13:14 +00:00

Fix issue with content being pasted in sub-pixel positions

This commit is contained in:
Emmanouil Papadeas 2023-01-17 04:06:06 +02:00
parent 5e749db0d5
commit 403539bb47

View file

@ -768,7 +768,7 @@ func paste(in_place := false) -> void:
camera_center.y = clamp(camera_center.y, 0, max_pos.y) camera_center.y = clamp(camera_center.y, 0, max_pos.y)
else: else:
camera_center.y = 0 camera_center.y = 0
big_bounding_rectangle.position = camera_center big_bounding_rectangle.position = camera_center.floor()
project.selection_map.move_bitmap_values(Global.current_project, false) project.selection_map.move_bitmap_values(Global.current_project, false)
self.big_bounding_rectangle = big_bounding_rectangle self.big_bounding_rectangle = big_bounding_rectangle