From 55325a38a4cd3687f281ba7734d399126793dcb8 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:29:36 +0300 Subject: [PATCH] Use a Vector2i in Selection.gd when pasting --- src/UI/Canvas/Selection.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/Canvas/Selection.gd b/src/UI/Canvas/Selection.gd index 43c0b6254..a6f9a6b58 100644 --- a/src/UI/Canvas/Selection.gd +++ b/src/UI/Canvas/Selection.gd @@ -736,9 +736,9 @@ func paste(in_place := false) -> void: var clip_map := SelectionMap.new() clip_map.data = clipboard.selection_map - var max_size := Vector2( - max(clip_map.get_size().x, project.selection_map.get_size().x), - max(clip_map.get_size().y, project.selection_map.get_size().y) + var max_size := Vector2i( + maxi(clip_map.get_size().x, project.selection_map.get_size().x), + maxi(clip_map.get_size().y, project.selection_map.get_size().y) ) project.selection_map.copy_from(clip_map)