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

Use a Vector2i in Selection.gd when pasting

This commit is contained in:
Emmanouil Papadeas 2024-10-10 15:29:36 +03:00
parent 8802e3ab41
commit 55325a38a4

View file

@ -736,9 +736,9 @@ func paste(in_place := false) -> void:
var clip_map := SelectionMap.new() var clip_map := SelectionMap.new()
clip_map.data = clipboard.selection_map clip_map.data = clipboard.selection_map
var max_size := Vector2( var max_size := Vector2i(
max(clip_map.get_size().x, project.selection_map.get_size().x), maxi(clip_map.get_size().x, project.selection_map.get_size().x),
max(clip_map.get_size().y, project.selection_map.get_size().y) maxi(clip_map.get_size().y, project.selection_map.get_size().y)
) )
project.selection_map.copy_from(clip_map) project.selection_map.copy_from(clip_map)